| Total Complexity | 6 |
| Total Lines | 44 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php declare(strict_types=1); |
||
| 5 | final class FoundUseNamespace implements EventProcessNodeInterface |
||
| 6 | { |
||
| 7 | /** @var int */ |
||
| 8 | private $line; |
||
| 9 | |||
| 10 | /** @var string */ |
||
| 11 | private $nodeName; |
||
| 12 | |||
| 13 | /** @var string */ |
||
| 14 | private $additionalInformation; |
||
| 15 | |||
| 16 | /** @var bool */ |
||
| 17 | private $erroDetect = false; |
||
| 18 | |||
| 19 | public function __construct(int $line, string $nodeName) |
||
| 20 | { |
||
| 21 | $this->line = $line; |
||
| 22 | $this->nodeName = $nodeName; |
||
| 23 | } |
||
| 24 | |||
| 25 | public function getLine(): int |
||
| 26 | { |
||
| 27 | return $this->line; |
||
| 28 | } |
||
| 29 | |||
| 30 | public function getNodeName(): string |
||
| 33 | } |
||
| 34 | |||
| 35 | public function foundError(string $addtionalInformation=''): void |
||
| 36 | { |
||
| 37 | $this->additionalInformation = $addtionalInformation; |
||
| 38 | $this->erroDetect = true; |
||
| 39 | } |
||
| 40 | |||
| 41 | public function withError(): bool |
||
| 42 | { |
||
| 43 | return $this->erroDetect; |
||
| 44 | } |
||
| 45 | |||
| 46 | public function getAdditionalInformation(): string |
||
| 49 | } |
||
| 50 | } |
||
| 51 |