| 1 | <?php |
||
| 14 | class FilterResult |
||
| 15 | { |
||
| 16 | /** |
||
| 17 | * @var bool |
||
| 18 | */ |
||
| 19 | protected $isNotEmpty; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @var mixed |
||
| 23 | */ |
||
| 24 | protected $filteredValue; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @param bool $isNotEmpty |
||
| 28 | * @param null|mixed $filteredValue |
||
| 29 | */ |
||
| 30 | 191 | public function __construct($isNotEmpty, $filteredValue = null) |
|
| 35 | |||
| 36 | /** |
||
| 37 | * Is the filter result not empty |
||
| 38 | * |
||
| 39 | * @return bool |
||
| 40 | */ |
||
| 41 | 191 | public function isNotEmpty() |
|
| 45 | |||
| 46 | /** |
||
| 47 | * Get the filtered value |
||
| 48 | * |
||
| 49 | * @return mixed|null |
||
| 50 | */ |
||
| 51 | 183 | public function getFilteredValue() |
|
| 55 | } |
||
| 56 |