| Conditions | 5 |
| Paths | 4 |
| Total Lines | 15 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 43 | public function start($index = null) |
||
| 44 | { |
||
| 45 | if ($this->sheetWrapper->getObject() === null) { |
||
| 46 | throw new \LogicException(); |
||
| 47 | } |
||
| 48 | if ($index !== null && !is_int($index)) { |
||
| 49 | throw new \InvalidArgumentException('Invalid index'); |
||
| 50 | } |
||
| 51 | |||
| 52 | if ($index === null) { |
||
| 53 | $this->sheetWrapper->increaseRow(); |
||
| 54 | } else { |
||
| 55 | $this->sheetWrapper->setRow($index); |
||
| 56 | } |
||
| 57 | } |
||
| 58 | |||
| 64 |