| 1 | <?php |
||
| 8 | abstract class AbstractComparisonOperatorNodeParser implements NodeParserInterface |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * @var SubParserInterface |
||
| 12 | */ |
||
| 13 | protected $fieldNameParser; |
||
| 14 | /** |
||
| 15 | * @var SubParserInterface |
||
| 16 | */ |
||
| 17 | protected $valueParser; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * @param SubParserInterface $fieldNameParser |
||
| 21 | * @param SubParserInterface $valueParser |
||
| 22 | */ |
||
| 23 | 64 | public function __construct(SubParserInterface $fieldNameParser, SubParserInterface $valueParser) |
|
| 28 | |||
| 29 | /** |
||
| 30 | * @param string $field |
||
| 31 | * @param mixed $value |
||
| 32 | * @return AbstractComparisonOperatorNode |
||
| 33 | */ |
||
| 34 | abstract protected function createNode($field, $value); |
||
| 35 | |||
| 36 | /** |
||
| 37 | * @return string |
||
| 38 | */ |
||
| 39 | abstract protected function getOperatorName(); |
||
| 40 | } |
||
| 41 |