| 1 | <?php |
||
| 10 | class Type implements ExpressionInterface |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * @var string Expected type descriptor |
||
| 14 | */ |
||
| 15 | private $type; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * Set expected type |
||
| 19 | * |
||
| 20 | * @param string $type Use string descriptors as returned by gettype() |
||
| 21 | */ |
||
| 22 | public function __construct(string $type) |
||
| 26 | |||
| 27 | /** |
||
| 28 | * Check if $operand is of php type |
||
| 29 | */ |
||
| 30 | public function evaluate($operand): bool |
||
| 34 | } |
||
| 35 |