| 1 | <?php |
||
| 10 | class In implements ExpressionInterface |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * @var array List to evaluate operands against |
||
| 14 | */ |
||
| 15 | private $list; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * Set the list operands are evaluated against |
||
| 19 | * |
||
| 20 | * @param array $list |
||
| 21 | */ |
||
| 22 | public function __construct(array $list) |
||
| 26 | |||
| 27 | /** |
||
| 28 | * Check if $operand is included in list |
||
| 29 | */ |
||
| 30 | public function evaluate($operand): bool |
||
| 34 | } |
||
| 35 |