| 1 | <?php |
||
| 21 | class ArrayReader implements ReaderInterface |
||
| 22 | { |
||
| 23 | /** @var array */ |
||
| 24 | private $data = []; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @param array $data |
||
| 28 | */ |
||
| 29 | 1 | public function __construct(array $data) |
|
| 33 | |||
| 34 | /** |
||
| 35 | * @return array |
||
| 36 | */ |
||
| 37 | 1 | public function getData() |
|
| 41 | |||
| 42 | /** |
||
| 43 | * @return ArrayIterator |
||
| 44 | */ |
||
| 45 | 1 | public function getIterator() |
|
| 49 | |||
| 50 | /** |
||
| 51 | * Returns the number of elements in the array. |
||
| 52 | * |
||
| 53 | * @return int |
||
| 54 | */ |
||
| 55 | 1 | public function count() |
|
| 59 | } |
||
| 60 |