| 1 | <?php |
||
| 10 | trait SearchableTrait |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * @var array $searchProperties |
||
| 14 | */ |
||
| 15 | private $searchProperties = []; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @var TranslationString $searchKeywords |
||
| 19 | */ |
||
| 20 | private $searchKeywords; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @param array $properties The properties to search into. |
||
| 24 | * @return SearchableInterface Chainable |
||
| 25 | */ |
||
| 26 | public function setSearchProperties(array $properties) |
||
| 31 | |||
| 32 | /** |
||
| 33 | * @return array |
||
| 34 | */ |
||
| 35 | public function searchProperties() |
||
| 39 | |||
| 40 | /** |
||
| 41 | * @param mixed $keywords The search keywords (localized). |
||
| 42 | * @return SearchableInterface Chainable |
||
| 43 | */ |
||
| 44 | public function setSearchKeywords($keywords) |
||
| 49 | |||
| 50 | /** |
||
| 51 | * @return TranslationString |
||
| 52 | */ |
||
| 53 | public function searchKeywords() |
||
| 57 | } |
||
| 58 |