1 | <?php |
||
11 | final class TupleCollection implements \IteratorAggregate, ResponseCollectionInterface |
||
12 | { |
||
13 | private $tuples = []; |
||
14 | |||
15 | /** |
||
16 | * TypleCollection constructor. |
||
17 | * |
||
18 | * @param array $tuples |
||
19 | */ |
||
20 | 2 | public function __construct(array $tuples) |
|
24 | |||
25 | /** {@inheritdoc} */ |
||
26 | 2 | public function getResponse(RpcRequestInterface $request) |
|
36 | |||
37 | /** {@inheritdoc} */ |
||
38 | 1 | public function getIterator() |
|
42 | |||
43 | 1 | private function getResponseFromTuple(array $tuple) |
|
47 | } |
||
48 |