| 1 | <?php |
||
| 5 | class Filter |
||
| 6 | { |
||
| 7 | const TYPE_SELECT = 'select'; |
||
| 8 | |||
| 9 | /** |
||
| 10 | * Field name. |
||
| 11 | * |
||
| 12 | * @var string |
||
| 13 | */ |
||
| 14 | protected $fieldName; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * Filter type (select, text...). |
||
| 18 | * |
||
| 19 | * @var |
||
| 20 | */ |
||
| 21 | protected $type; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @return string |
||
| 25 | */ |
||
| 26 | public function getFieldName() |
||
| 30 | |||
| 31 | /** |
||
| 32 | * @param string $fieldName |
||
| 33 | */ |
||
| 34 | public function setFieldName($fieldName) |
||
| 38 | |||
| 39 | /** |
||
| 40 | * @return mixed |
||
| 41 | */ |
||
| 42 | public function getType() |
||
| 46 | |||
| 47 | /** |
||
| 48 | * @param mixed $type |
||
| 49 | */ |
||
| 50 | public function setType($type) |
||
| 54 | } |
||
| 55 |