|
@@ 40-43 (lines=4) @@
|
| 37 |
|
|
| 38 |
|
public function addResultSet(SearchResultType $type, array $matches, array $exactMatches = null) { |
| 39 |
|
$type = $type->getLabel(); |
| 40 |
|
if(!isset($this->result[$type])) { |
| 41 |
|
$this->result[$type] = []; |
| 42 |
|
$this->result['exact'][$type] = []; |
| 43 |
|
} |
| 44 |
|
|
| 45 |
|
$this->result[$type] = array_merge($this->result[$type], $matches); |
| 46 |
|
if(is_array($exactMatches)) { |
|
@@ 82-84 (lines=3) @@
|
| 79 |
|
public function unsetResult(SearchResultType $type) { |
| 80 |
|
$type = $type->getLabel(); |
| 81 |
|
$this->result[$type] = []; |
| 82 |
|
if(isset($this->result['exact'][$type])) { |
| 83 |
|
$this->result['exact'][$type] = []; |
| 84 |
|
} |
| 85 |
|
} |
| 86 |
|
} |
| 87 |
|
|