1 | <?php |
||
20 | class DefaultParser implements ParserInterface |
||
21 | { |
||
22 | /** |
||
23 | * @var string |
||
24 | */ |
||
25 | protected $quote; |
||
26 | |||
27 | /** |
||
28 | * {@inheritdoc} |
||
29 | */ |
||
30 | public function setQuote($quote) |
||
34 | |||
35 | /** |
||
36 | * {@inheritdoc} |
||
37 | */ |
||
38 | public function comparison($field, $comparison, $value) |
||
45 | |||
46 | /** |
||
47 | * {@inheritdoc} |
||
48 | */ |
||
49 | public function normalizeGroupValue($value) |
||
53 | |||
54 | /** |
||
55 | * @param string $comparison |
||
56 | * @param mixed $value |
||
57 | * |
||
58 | * @return string |
||
59 | */ |
||
60 | protected function transformComparison($comparison, $value) |
||
74 | |||
75 | /** |
||
76 | * Normalize value. |
||
77 | * |
||
78 | * @param mixed $value |
||
79 | * |
||
80 | * @return array|float|int|string |
||
81 | */ |
||
82 | protected function normalizeValue($value) |
||
102 | |||
103 | /** |
||
104 | * Normalize collection value. |
||
105 | * |
||
106 | * @param mixed $value |
||
107 | * |
||
108 | * @return array|string |
||
109 | */ |
||
110 | protected function normalizeCollectionValue($value) |
||
126 | } |
||
127 |