| 1 | <?php |
||
| 14 | class ResultCollection implements ResultCollectionInterface |
||
| 15 | { |
||
| 16 | /** |
||
| 17 | * @var \Traversable|array |
||
| 18 | */ |
||
| 19 | private $results; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @param \Traversable|array $results |
||
| 23 | */ |
||
| 24 | 23 | public function __construct($results = []) |
|
| 34 | |||
| 35 | /** |
||
| 36 | * {@inheritdoc} |
||
| 37 | */ |
||
| 38 | 16 | public function getResults() |
|
| 42 | |||
| 43 | /** |
||
| 44 | * {@inheritdoc} |
||
| 45 | */ |
||
| 46 | 15 | public function count() |
|
| 50 | |||
| 51 | /** |
||
| 52 | * {@inheritdoc} |
||
| 53 | */ |
||
| 54 | 5 | public function jsonSerialize() |
|
| 58 | |||
| 59 | /** |
||
| 60 | * {@inheritdoc} |
||
| 61 | */ |
||
| 62 | 1 | public function getIterator() |
|
| 66 | |||
| 67 | /** |
||
| 68 | * @param \Traversable|array $results |
||
| 69 | * |
||
| 70 | * @return bool |
||
| 71 | */ |
||
| 72 | 23 | private function canUseResults($results = []) |
|
| 77 | } |
||
| 78 |