| 1 | <?php |
||
| 11 | class CellCollection extends AbstractCollection implements CellCollectionInterface |
||
| 12 | { |
||
| 13 | const MINIMUM_CELLS = 2; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * @inheritDoc |
||
| 17 | */ |
||
| 18 | 13 | protected function isItemValid($item) |
|
| 22 | |||
| 23 | 8 | public function getIterator() |
|
| 29 | |||
| 30 | 4 | public function getCells() |
|
| 36 | |||
| 37 | 1 | public function getNamedCell($name) |
|
| 41 | |||
| 42 | 1 | public function addCell(CellInterface $item) |
|
| 46 | |||
| 47 | 2 | public function addNamedCell($name, CellInterface $cell) |
|
| 51 | |||
| 52 | /** |
||
| 53 | * @throws \InvalidArgumentException |
||
| 54 | */ |
||
| 55 | 12 | private function validateNumberOfCells() |
|
| 69 | } |
||
| 70 |