1 | <?php |
||
7 | class Like extends Comparison |
||
8 | { |
||
9 | const CONTAINS = '%%%s%%'; |
||
10 | const ENDS_WITH = '%%%s'; |
||
11 | const STARTS_WITH = '%s%%'; |
||
12 | |||
13 | /** |
||
14 | * @param string $field |
||
15 | * @param string $value |
||
16 | * @param string $format |
||
17 | * @param string|null $dqlAlias |
||
18 | * |
||
19 | * @throws InvalidArgumentException |
||
20 | */ |
||
21 | public function __construct($field, $value, $format = self::CONTAINS, $dqlAlias = null) |
||
26 | |||
27 | /** |
||
28 | * @param string $format |
||
29 | * @param string $value |
||
30 | * |
||
31 | * @return string |
||
32 | */ |
||
33 | private function formatValue($format, $value) |
||
37 | } |
||
38 |