Total Complexity | 8 |
Total Lines | 38 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
26 | abstract class AbstractBlock extends Node |
||
27 | { |
||
28 | /** @var int|null */ |
||
29 | protected $startLine; |
||
30 | |||
31 | /** @var int|null */ |
||
32 | protected $endLine; |
||
33 | |||
34 | 3027 | protected function setParent(?Node $node = null): void |
|
41 | 3024 | } |
|
42 | |||
43 | 3066 | public function setStartLine(?int $startLine): void |
|
44 | { |
||
45 | 3066 | $this->startLine = $startLine; |
|
46 | 3066 | if ($this->endLine === null) { |
|
47 | 3066 | $this->endLine = $startLine; |
|
48 | } |
||
49 | 3066 | } |
|
50 | |||
51 | 51 | public function getStartLine(): ?int |
|
54 | } |
||
55 | |||
56 | 2985 | public function setEndLine(?int $endLine): void |
|
57 | { |
||
58 | 2985 | $this->endLine = $endLine; |
|
59 | 2985 | } |
|
60 | |||
61 | 45 | public function getEndLine(): ?int |
|
64 | } |
||
65 | } |
||
66 |