| Total Complexity | 3 |
| Total Lines | 30 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 19 | final class NodeWalkerEvent |
||
| 20 | { |
||
| 21 | /** |
||
| 22 | * @var Node |
||
| 23 | * |
||
| 24 | * @psalm-readonly |
||
| 25 | */ |
||
| 26 | private $node; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * @var bool |
||
| 30 | * |
||
| 31 | * @psalm-readonly |
||
| 32 | */ |
||
| 33 | private $isEntering; |
||
| 34 | |||
| 35 | public function __construct(Node $node, bool $isEntering = true) |
||
| 36 | { |
||
| 37 | $this->node = $node; |
||
| 38 | $this->isEntering = $isEntering; |
||
| 39 | } |
||
| 40 | |||
| 41 | public function getNode(): Node |
||
| 42 | { |
||
| 43 | return $this->node; |
||
| 44 | } |
||
| 45 | |||
| 46 | public function isEntering(): bool |
||
| 49 | } |
||
| 50 | } |
||
| 51 |