Skip to content

Commit da04b71

Browse files
committed
use traditional properties
1 parent 298e2b0 commit da04b71

File tree

4 files changed

+185
-58
lines changed

4 files changed

+185
-58
lines changed

src/Data/ProcessedClassType.php

Lines changed: 47 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -14,24 +14,57 @@
1414
*/
1515
final class ProcessedClassType
1616
{
17+
public readonly string $className;
18+
public readonly string $namespace;
19+
20+
/**
21+
* @var array<string, ProcessedMethodType>
22+
*/
23+
public array $methods;
24+
public readonly int $startLine;
25+
public int $executableLines;
26+
public int $executedLines;
27+
public int $executableBranches;
28+
public int $executedBranches;
29+
public int $executablePaths;
30+
public int $executedPaths;
31+
public int $ccn;
32+
public float|int $coverage;
33+
public int|string $crap;
34+
public readonly string $link;
35+
1736
public function __construct(
18-
public readonly string $className,
19-
public readonly string $namespace,
37+
string $className,
38+
string $namespace,
2039
/**
2140
* @var array<string, ProcessedMethodType>
2241
*/
23-
public array $methods,
24-
public readonly int $startLine,
25-
public int $executableLines,
26-
public int $executedLines,
27-
public int $executableBranches,
28-
public int $executedBranches,
29-
public int $executablePaths,
30-
public int $executedPaths,
31-
public int $ccn,
32-
public float|int $coverage,
33-
public int|string $crap,
34-
public readonly string $link,
42+
array $methods,
43+
int $startLine,
44+
int $executableLines,
45+
int $executedLines,
46+
int $executableBranches,
47+
int $executedBranches,
48+
int $executablePaths,
49+
int $executedPaths,
50+
int $ccn,
51+
float|int $coverage,
52+
int|string $crap,
53+
string $link,
3554
) {
55+
$this->className = $className;
56+
$this->namespace = $namespace;
57+
$this->methods = $methods;
58+
$this->startLine = $startLine;
59+
$this->executableLines = $executableLines;
60+
$this->executedLines = $executedLines;
61+
$this->executableBranches = $executableBranches;
62+
$this->executedBranches = $executedBranches;
63+
$this->executablePaths = $executablePaths;
64+
$this->executedPaths = $executedPaths;
65+
$this->ccn = $ccn;
66+
$this->coverage = $coverage;
67+
$this->crap = $crap;
68+
$this->link = $link;
3669
}
3770
}

src/Data/ProcessedFunctionType.php

Lines changed: 46 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -14,22 +14,53 @@
1414
*/
1515
final class ProcessedFunctionType
1616
{
17+
public readonly string $functionName;
18+
public readonly string $namespace;
19+
public readonly string $signature;
20+
public readonly int $startLine;
21+
public readonly int $endLine;
22+
public int $executableLines;
23+
public int $executedLines;
24+
public int $executableBranches;
25+
public int $executedBranches;
26+
public int $executablePaths;
27+
public int $executedPaths;
28+
public int $ccn;
29+
public float|int $coverage;
30+
public int|string $crap;
31+
public readonly string $link;
32+
1733
public function __construct(
18-
public readonly string $functionName,
19-
public readonly string $namespace,
20-
public readonly string $signature,
21-
public readonly int $startLine,
22-
public readonly int $endLine,
23-
public int $executableLines,
24-
public int $executedLines,
25-
public int $executableBranches,
26-
public int $executedBranches,
27-
public int $executablePaths,
28-
public int $executedPaths,
29-
public int $ccn,
30-
public float|int $coverage,
31-
public int|string $crap,
32-
public readonly string $link,
34+
string $functionName,
35+
string $namespace,
36+
string $signature,
37+
int $startLine,
38+
int $endLine,
39+
int $executableLines,
40+
int $executedLines,
41+
int $executableBranches,
42+
int $executedBranches,
43+
int $executablePaths,
44+
int $executedPaths,
45+
int $ccn,
46+
float|int $coverage,
47+
int|string $crap,
48+
string $link,
3349
) {
50+
$this->link = $link;
51+
$this->crap = $crap;
52+
$this->coverage = $coverage;
53+
$this->ccn = $ccn;
54+
$this->executedPaths = $executedPaths;
55+
$this->executablePaths = $executablePaths;
56+
$this->executedBranches = $executedBranches;
57+
$this->executableBranches = $executableBranches;
58+
$this->executedLines = $executedLines;
59+
$this->executableLines = $executableLines;
60+
$this->endLine = $endLine;
61+
$this->startLine = $startLine;
62+
$this->signature = $signature;
63+
$this->namespace = $namespace;
64+
$this->functionName = $functionName;
3465
}
3566
}

src/Data/ProcessedMethodType.php

Lines changed: 46 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -14,22 +14,53 @@
1414
*/
1515
final class ProcessedMethodType
1616
{
17+
public readonly string $methodName;
18+
public readonly string $visibility;
19+
public readonly string $signature;
20+
public readonly int $startLine;
21+
public readonly int $endLine;
22+
public int $executableLines;
23+
public int $executedLines;
24+
public int $executableBranches;
25+
public int $executedBranches;
26+
public int $executablePaths;
27+
public int $executedPaths;
28+
public int $ccn;
29+
public float|int $coverage;
30+
public int|string $crap;
31+
public readonly string $link;
32+
1733
public function __construct(
18-
public readonly string $methodName,
19-
public readonly string $visibility,
20-
public readonly string $signature,
21-
public readonly int $startLine,
22-
public readonly int $endLine,
23-
public int $executableLines,
24-
public int $executedLines,
25-
public int $executableBranches,
26-
public int $executedBranches,
27-
public int $executablePaths,
28-
public int $executedPaths,
29-
public int $ccn,
30-
public float|int $coverage,
31-
public int|string $crap,
32-
public readonly string $link,
34+
string $methodName,
35+
string $visibility,
36+
string $signature,
37+
int $startLine,
38+
int $endLine,
39+
int $executableLines,
40+
int $executedLines,
41+
int $executableBranches,
42+
int $executedBranches,
43+
int $executablePaths,
44+
int $executedPaths,
45+
int $ccn,
46+
float|int $coverage,
47+
int|string $crap,
48+
string $link,
3349
) {
50+
$this->link = $link;
51+
$this->crap = $crap;
52+
$this->coverage = $coverage;
53+
$this->ccn = $ccn;
54+
$this->executedPaths = $executedPaths;
55+
$this->executablePaths = $executablePaths;
56+
$this->executedBranches = $executedBranches;
57+
$this->executableBranches = $executableBranches;
58+
$this->executedLines = $executedLines;
59+
$this->executableLines = $executableLines;
60+
$this->endLine = $endLine;
61+
$this->startLine = $startLine;
62+
$this->signature = $signature;
63+
$this->visibility = $visibility;
64+
$this->methodName = $methodName;
3465
}
3566
}

src/Data/ProcessedTraitType.php

Lines changed: 46 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -14,24 +14,56 @@
1414
*/
1515
final class ProcessedTraitType
1616
{
17+
public readonly string $traitName;
18+
public readonly string $namespace;
19+
/**
20+
* @var array<string, ProcessedMethodType>
21+
*/
22+
public array $methods;
23+
public readonly int $startLine;
24+
public int $executableLines;
25+
public int $executedLines;
26+
public int $executableBranches;
27+
public int $executedBranches;
28+
public int $executablePaths;
29+
public int $executedPaths;
30+
public int $ccn;
31+
public float|int $coverage;
32+
public int|string $crap;
33+
public readonly string $link;
34+
1735
public function __construct(
18-
public readonly string $traitName,
19-
public readonly string $namespace,
36+
string $traitName,
37+
string $namespace,
2038
/**
2139
* @var array<string, ProcessedMethodType>
2240
*/
23-
public array $methods,
24-
public readonly int $startLine,
25-
public int $executableLines,
26-
public int $executedLines,
27-
public int $executableBranches,
28-
public int $executedBranches,
29-
public int $executablePaths,
30-
public int $executedPaths,
31-
public int $ccn,
32-
public float|int $coverage,
33-
public int|string $crap,
34-
public readonly string $link,
41+
array $methods,
42+
int $startLine,
43+
int $executableLines,
44+
int $executedLines,
45+
int $executableBranches,
46+
int $executedBranches,
47+
int $executablePaths,
48+
int $executedPaths,
49+
int $ccn,
50+
float|int $coverage,
51+
int|string $crap,
52+
string $link,
3553
) {
54+
$this->link = $link;
55+
$this->crap = $crap;
56+
$this->coverage = $coverage;
57+
$this->ccn = $ccn;
58+
$this->executedPaths = $executedPaths;
59+
$this->executablePaths = $executablePaths;
60+
$this->executedBranches = $executedBranches;
61+
$this->executableBranches = $executableBranches;
62+
$this->executedLines = $executedLines;
63+
$this->executableLines = $executableLines;
64+
$this->startLine = $startLine;
65+
$this->methods = $methods;
66+
$this->namespace = $namespace;
67+
$this->traitName = $traitName;
3668
}
3769
}

0 commit comments

Comments
 (0)