Conditions | 2 |
Paths | 2 |
Total Lines | 10 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Tests | 4 |
CRAP Score | 2.032 |
Changes | 2 | ||
Bugs | 0 | Features | 2 |
1 | <?php declare(strict_types = 1); |
||
19 | 1 | public function visit(AbstractNode $node, ?AbstractVisitor $subVisitor = null, ?array $options = null): string |
|
20 | { |
||
21 | /** @var LogicalNot $logicalNotNode */ |
||
22 | 1 | $logicalNotNode = $node; |
|
23 | |||
24 | 1 | if ($subVisitor === null) { |
|
25 | throw new LogicException('Implementation requires sub-visitor'); |
||
26 | } |
||
27 | |||
28 | 1 | return 'NOT (' . $subVisitor->visit($logicalNotNode->getOperand(), $subVisitor, $options) . ')'; |
|
29 | } |
||
32 |