| Total Complexity | 7 |
| Total Lines | 34 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 11 | class Frame implements \Countable |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * @var array |
||
| 15 | */ |
||
| 16 | private $rows = []; |
||
| 17 | |||
| 18 | public function newLine(int $count = 1) : void |
||
| 19 | { |
||
| 20 | foreach (range(1, $count) as $i) { |
||
| 21 | $this->rows[] = "\n"; |
||
| 22 | } |
||
| 23 | } |
||
| 24 | |||
| 25 | public function addRows(array $rows = []) : void |
||
| 29 | } |
||
| 30 | } |
||
| 31 | |||
| 32 | public function addRow(string $row) : void |
||
| 33 | { |
||
| 34 | $this->rows[] = $row; |
||
| 35 | } |
||
| 36 | |||
| 37 | public function count() : int |
||
| 38 | { |
||
| 39 | return count($this->rows); |
||
| 40 | } |
||
| 41 | |||
| 42 | public function getRows() : array |
||
| 45 | } |
||
| 46 | } |
||
| 47 |