Skip to content

Commit b00d89a

Browse files
committed
turn properties readonly
1 parent fe27297 commit b00d89a

File tree

4 files changed

+20
-20
lines changed

4 files changed

+20
-20
lines changed

src/Data/ProcessedClassType.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@
1212
final class ProcessedClassType
1313
{
1414
public function __construct(
15-
public string $className,
16-
public string $namespace,
15+
public readonly string $className,
16+
public readonly string $namespace,
1717
/**
1818
* @var array<string, ProcessedMethodType>
1919
*/
2020
public array $methods,
21-
public int $startLine,
21+
public readonly int $startLine,
2222
public int $executableLines,
2323
public int $executedLines,
2424
public int $executableBranches,
@@ -28,7 +28,7 @@ public function __construct(
2828
public int $ccn,
2929
public float|int $coverage,
3030
public int|string $crap,
31-
public string $link,
31+
public readonly string $link,
3232
) {
3333
}
3434
}

src/Data/ProcessedFunctionType.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@
1212
final class ProcessedFunctionType
1313
{
1414
public function __construct(
15-
public string $functionName,
16-
public string $namespace,
17-
public string $signature,
18-
public int $startLine,
19-
public int $endLine,
15+
public readonly string $functionName,
16+
public readonly string $namespace,
17+
public readonly string $signature,
18+
public readonly int $startLine,
19+
public readonly int $endLine,
2020
public int $executableLines,
2121
public int $executedLines,
2222
public int $executableBranches,
@@ -26,7 +26,7 @@ public function __construct(
2626
public int $ccn,
2727
public float|int $coverage,
2828
public int|string $crap,
29-
public string $link,
29+
public readonly string $link,
3030
) {
3131
}
3232
}

src/Data/ProcessedMethodType.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@
1212
final class ProcessedMethodType
1313
{
1414
public function __construct(
15-
public string $methodName,
16-
public string $visibility,
17-
public string $signature,
18-
public int $startLine,
19-
public int $endLine,
15+
public readonly string $methodName,
16+
public readonly string $visibility,
17+
public readonly string $signature,
18+
public readonly int $startLine,
19+
public readonly int $endLine,
2020
public int $executableLines,
2121
public int $executedLines,
2222
public int $executableBranches,
@@ -26,7 +26,7 @@ public function __construct(
2626
public int $ccn,
2727
public float|int $coverage,
2828
public int|string $crap,
29-
public string $link,
29+
public readonly string $link,
3030
) {
3131
}
3232
}

src/Data/ProcessedTraitType.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@
1212
final class ProcessedTraitType
1313
{
1414
public function __construct(
15-
public string $traitName,
16-
public string $namespace,
15+
public readonly string $traitName,
16+
public readonly string $namespace,
1717
/**
1818
* @var array<string, ProcessedMethodType>
1919
*/
2020
public array $methods,
21-
public int $startLine,
21+
public readonly int $startLine,
2222
public int $executableLines,
2323
public int $executedLines,
2424
public int $executableBranches,
@@ -28,7 +28,7 @@ public function __construct(
2828
public int $ccn,
2929
public float|int $coverage,
3030
public int|string $crap,
31-
public string $link,
31+
public readonly string $link,
3232
) {
3333
}
3434
}

0 commit comments

Comments
 (0)