1 | <?php |
||
8 | class Row implements \ArrayAccess, \Countable, \IteratorAggregate |
||
9 | { |
||
10 | /** @var Reader $reader */ |
||
11 | protected $reader; |
||
12 | /** @var Cell[] $cells */ |
||
13 | protected $cells = []; |
||
14 | |||
15 | 7 | public function __construct($cells, Reader $reader) |
|
20 | |||
21 | /** |
||
22 | * @return Reader |
||
23 | */ |
||
24 | 7 | public function getReader() |
|
28 | |||
29 | /** |
||
30 | * @param Reader $reader |
||
31 | * |
||
32 | * @return $this |
||
33 | */ |
||
34 | 7 | public function setReader(Reader $reader) |
|
40 | |||
41 | /** |
||
42 | * @return Cell[] |
||
43 | */ |
||
44 | 6 | public function getCells() |
|
48 | |||
49 | /** |
||
50 | * @param array $cells |
||
51 | */ |
||
52 | 7 | public function addCells(array $cells) |
|
59 | |||
60 | 7 | public function addCell($key, $value) |
|
68 | |||
69 | /** |
||
70 | * @inheritDoc |
||
71 | */ |
||
72 | 2 | public function offsetExists($offset) |
|
76 | |||
77 | /** |
||
78 | * @inheritDoc |
||
79 | */ |
||
80 | 5 | public function offsetGet($offset) |
|
84 | |||
85 | /** |
||
86 | * @inheritDoc |
||
87 | */ |
||
88 | public function offsetSet($offset, $value) |
||
92 | |||
93 | /** |
||
94 | * @inheritDoc |
||
95 | */ |
||
96 | public function offsetUnset($offset) |
||
100 | |||
101 | /** |
||
102 | * @inheritDoc |
||
103 | */ |
||
104 | 1 | public function count() |
|
108 | |||
109 | /** |
||
110 | * @inheritDoc |
||
111 | */ |
||
112 | public function getIterator() |
||
116 | |||
117 | |||
118 | /** |
||
119 | * @return array |
||
120 | */ |
||
121 | 1 | public function toArray() |
|
131 | } |
||
132 |