| Total Complexity | 3 |
| Total Lines | 42 |
| Duplicated Lines | 0 % |
| Changes | 3 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 10 | class Negation extends AbstractNode |
||
| 11 | { |
||
| 12 | private Node $node; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * Negation. |
||
| 16 | * |
||
| 17 | * @param Node $node |
||
| 18 | * @param Node|null $parent |
||
| 19 | */ |
||
| 20 | public function __construct(Node $node, ?Node $parent = null) |
||
| 21 | { |
||
| 22 | parent::__construct($parent); |
||
| 23 | |||
| 24 | $this->setNode($node); |
||
| 25 | } |
||
| 26 | |||
| 27 | /** |
||
| 28 | * Get node. |
||
| 29 | * |
||
| 30 | * @return Node |
||
| 31 | */ |
||
| 32 | public function getNode(): Node |
||
| 33 | { |
||
| 34 | return $this->node; |
||
| 35 | } |
||
| 36 | |||
| 37 | /** |
||
| 38 | * Set node. |
||
| 39 | * |
||
| 40 | * @param Node $node |
||
| 41 | * |
||
| 42 | * @return Negation |
||
| 43 | * |
||
| 44 | * @internal |
||
| 45 | */ |
||
| 46 | public function setNode(Node $node): Negation |
||
| 52 | } |
||
| 53 | } |
||
| 54 |