Total Complexity | 3 |
Total Lines | 23 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
18 | class DateTimeRangePickerButton extends AField |
||
19 | { |
||
20 | protected ?string $searchFormat = null; |
||
21 | protected ?dt $startTime; |
||
22 | protected ?dt $endTime; |
||
23 | |||
24 | public function __construct(?string $searchFormat = null, ?dt $startTime = null, ?dt $endTime = null, array $attributes = []) |
||
25 | { |
||
26 | $this->searchFormat = $searchFormat; |
||
27 | $this->startTime = $startTime; |
||
28 | $this->endTime = $endTime; |
||
29 | |||
30 | parent::__construct($attributes); |
||
31 | } |
||
32 | |||
33 | public function getFilterAction(): string |
||
34 | { |
||
35 | return IFilterFactory::ACTION_RANGE; |
||
36 | } |
||
37 | |||
38 | public function add(): void |
||
41 | } |
||
42 | } |
||
43 |