1 | <?php |
||
8 | class Row implements \ArrayAccess, \Countable, \IteratorAggregate |
||
9 | { |
||
10 | /** @var Cell[] $cells */ |
||
11 | protected $cells = []; |
||
12 | /** @var Reader $reader */ |
||
13 | protected $reader; |
||
14 | |||
15 | 3 | public function __construct($cells, Reader $reader) |
|
20 | |||
21 | /** |
||
22 | * @return Reader |
||
23 | */ |
||
24 | 3 | public function getReader() |
|
28 | |||
29 | /** |
||
30 | * @param Reader $reader |
||
31 | * |
||
32 | * @return $this |
||
33 | */ |
||
34 | 3 | public function setReader(Reader $reader) |
|
40 | |||
41 | 2 | public function getCells() |
|
45 | |||
46 | 3 | public function addCells(array $cells) |
|
58 | |||
59 | 3 | public function addCell($key, $value) |
|
67 | |||
68 | /** |
||
69 | * @inheritDoc |
||
70 | */ |
||
71 | public function offsetExists($offset) |
||
75 | |||
76 | /** |
||
77 | * @inheritDoc |
||
78 | */ |
||
79 | 1 | public function offsetGet($offset) |
|
83 | |||
84 | /** |
||
85 | * @inheritDoc |
||
86 | */ |
||
87 | public function offsetSet($offset, $value) |
||
91 | |||
92 | /** |
||
93 | * @inheritDoc |
||
94 | */ |
||
95 | public function offsetUnset($offset) |
||
99 | |||
100 | /** |
||
101 | * @inheritDoc |
||
102 | */ |
||
103 | 1 | public function count() |
|
107 | |||
108 | /** |
||
109 | * @inheritDoc |
||
110 | */ |
||
111 | public function getIterator() |
||
115 | } |
||
116 |