Total Complexity | 4 |
Total Lines | 32 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
25 | final class Table |
||
26 | { |
||
27 | /** @var array<Column> */ |
||
28 | private $columns = []; |
||
29 | |||
30 | /** @var array<Index> */ |
||
31 | private $indexes = []; |
||
32 | |||
33 | /** |
||
34 | * @param array $values |
||
35 | */ |
||
36 | public function __construct(array $values) |
||
37 | { |
||
38 | foreach ($values as $key => $value) { |
||
39 | $this->$key = $value; |
||
40 | } |
||
41 | } |
||
42 | |||
43 | /** |
||
44 | * @return Column[] |
||
45 | */ |
||
46 | public function getColumns(): array |
||
49 | } |
||
50 | |||
51 | /** |
||
52 | * @return Index[] |
||
53 | */ |
||
54 | public function getIndexes(): array |
||
57 | } |
||
58 | } |