| 1 | <?php |
||
| 7 | class Filter |
||
| 8 | { |
||
| 9 | private $fromColumn; |
||
| 10 | private $toColumn; |
||
| 11 | |||
| 12 | 5 | private function __construct(array $filters) |
|
| 17 | |||
| 18 | 5 | public static function createFromArray(array $filters) :Filter |
|
| 22 | |||
| 23 | 5 | public function isFromColumnEnabled() :bool |
|
| 27 | |||
| 28 | 2 | public function isToColumnEnabled() :bool |
|
| 32 | |||
| 33 | /** |
||
| 34 | * @return string|null |
||
| 35 | */ |
||
| 36 | 1 | public function getFromColumn(): ?string |
|
| 40 | |||
| 41 | /** |
||
| 42 | * @return string|null |
||
| 43 | */ |
||
| 44 | 1 | public function getToColumn(): ?string |
|
| 48 | } |