| 1 | <?php |
||
| 10 | class Not implements ExpressionInterface |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * @var ExpressionInterface Expression to negate |
||
| 14 | */ |
||
| 15 | private $expr; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * Load expression |
||
| 19 | * |
||
| 20 | * @param ExpressionInterface $expr |
||
| 21 | */ |
||
| 22 | public function __construct(ExpressionInterface $expr) |
||
| 26 | |||
| 27 | /** |
||
| 28 | * Negate contained expression |
||
| 29 | */ |
||
| 30 | public function evaluate($operand): bool |
||
| 34 | } |
||
| 35 |