| 1 | <?php |
||
| 16 | class ResultCollection extends AbstractCollection implements ResultCollectionInterface |
||
| 17 | { |
||
| 18 | /** |
||
| 19 | * @inheritDoc |
||
| 20 | */ |
||
| 21 | 6 | public function addNamedItem($name, $item) |
|
| 22 | { |
||
| 23 | 6 | return parent::addNamedItem($name, $item); |
|
| 24 | } |
||
| 25 | |||
| 26 | /** |
||
| 27 | * {@inheritdoc} |
||
| 28 | */ |
||
| 29 | 10 | public function getResults() |
|
| 33 | |||
| 34 | /** |
||
| 35 | * {@inheritdoc} |
||
| 36 | */ |
||
| 37 | 5 | public function jsonSerialize() |
|
| 38 | { |
||
| 39 | 5 | return $this->getItems(); |
|
| 40 | } |
||
| 41 | |||
| 42 | /** |
||
| 43 | * @inheritDoc |
||
| 44 | */ |
||
| 45 | 10 | protected function isItemValid($item) |
|
| 49 | } |
||
| 50 |