| Total Complexity | 5 |
| Total Lines | 31 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 8 | class ResolveDependencyException extends RuntimeException |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * @var Node |
||
| 12 | */ |
||
| 13 | private $node; |
||
| 14 | |||
| 15 | public function __construct(Node $node, $message = '', $code = 0, \Throwable $previous = null) |
||
| 19 | } |
||
| 20 | |||
| 21 | public function getNodeLine() |
||
| 22 | { |
||
| 23 | return $this->node->getLine(); |
||
| 24 | } |
||
| 25 | |||
| 26 | public function getNodeType() |
||
| 29 | } |
||
| 30 | |||
| 31 | public function __toString(): string |
||
| 32 | { |
||
| 33 | return parent::__toString() . ' ' . $this->nodeToString(); |
||
| 34 | } |
||
| 35 | |||
| 36 | protected function nodeToString(): string |
||
| 39 | } |
||
| 40 | } |
||
| 41 |