1 | <?php |
||
8 | class SearchEvent extends Event |
||
9 | { |
||
10 | /** |
||
11 | * @var array |
||
12 | */ |
||
13 | protected $foundItems = array(); |
||
14 | |||
15 | /** |
||
16 | * @var array |
||
17 | */ |
||
18 | protected $results = array(); |
||
19 | |||
20 | /** |
||
21 | * @param array $foundItems |
||
22 | */ |
||
23 | 4 | public function setFoundItems(array $foundItems) |
|
27 | |||
28 | /** |
||
29 | * @return mixed |
||
30 | */ |
||
31 | public function getFoundItems() |
||
35 | |||
36 | /** |
||
37 | * @param string $class |
||
38 | * @return array |
||
39 | */ |
||
40 | public function getFoundIdsForClass($class) |
||
48 | |||
49 | /** |
||
50 | * @param SearchResult $result |
||
51 | */ |
||
52 | 3 | public function addResult(SearchResult $result) |
|
59 | |||
60 | /** |
||
61 | * @return array |
||
62 | */ |
||
63 | 4 | public function getResults() |
|
67 | } |
||
68 |