| Total Complexity | 6 |
| Total Lines | 40 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php declare(strict_types=1); |
||
| 23 | class Header implements HeaderInterface |
||
| 24 | { |
||
| 25 | /** @var array */ |
||
| 26 | protected $columns; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * Header constructor. |
||
| 30 | * |
||
| 31 | * @param array $columns array of strings of column names |
||
| 32 | * |
||
| 33 | * @throws InvalidHeaderArrayException |
||
| 34 | */ |
||
| 35 | 6 | public function __construct(array $columns = []) |
|
| 43 | 5 | } |
|
| 44 | |||
| 45 | /** |
||
| 46 | * @param string $column |
||
| 47 | * |
||
| 48 | * @return void |
||
| 49 | */ |
||
| 50 | 3 | public function addColumn(string $column) |
|
| 54 | } |
||
| 55 | 3 | } |
|
| 56 | |||
| 57 | /** |
||
| 58 | * @return array |
||
| 59 | */ |
||
| 60 | 4 | public function getColumns(): array |
|
| 65 |