1 | <?php |
||
15 | class DateFilter extends AbstractComparatorFilter |
||
16 | { |
||
17 | /** |
||
18 | * {@inheritdoc} |
||
19 | */ |
||
20 | public function buildForm(FormBuilderInterface $builder, array $options) |
||
28 | |||
29 | /** |
||
30 | * {@inheritdoc} |
||
31 | */ |
||
32 | public function getExpression(string $fieldName, array $data): Expression |
||
42 | |||
43 | /** |
||
44 | * {@inheritdoc} |
||
45 | */ |
||
46 | public function isApplicable(array $filterData): bool |
||
47 | { |
||
48 | return (bool) isset($filterData['apply']) && $filterData['apply']; |
||
49 | } |
||
50 | |||
51 | /** |
||
52 | * {@inheritdoc} |
||
53 | */ |
||
54 | public function configureOptions(OptionsResolver $options) |
||
58 | |||
59 | protected function getComparatorMap(): array |
||
72 | } |
||
73 |