| 1 | <?php |
||
| 11 | class Row implements \Iterator |
||
| 12 | { |
||
| 13 | private $columnFactory; |
||
| 14 | private $columnMetadatas; |
||
| 15 | private $data; |
||
| 16 | |||
| 17 | public function __construct( |
||
| 18 | ColumnFactory $columnFactory, |
||
| 19 | GridMetadata $gridMetadata, |
||
| 20 | GridContext $gridContext, |
||
| 21 | $data |
||
| 22 | ) { |
||
| 23 | $this->columnFactory = $columnFactory; |
||
| 24 | $this->columnMetadatas = $gridMetadata->getColumnsForGroups($gridContext->getGroups()); |
||
| 25 | $this->data = $data; |
||
| 26 | } |
||
| 27 | |||
| 28 | public function getData() |
||
| 32 | |||
| 33 | public function current(): Cell |
||
| 44 | |||
| 45 | public function next() |
||
| 49 | |||
| 50 | public function key() |
||
| 54 | |||
| 55 | public function rewind() |
||
| 59 | |||
| 60 | public function valid() |
||
| 64 | } |
||
| 65 |