| Total Complexity | 4 |
| Total Lines | 28 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 17 | #[\Attribute(\Attribute::TARGET_CLASS), NamedArgumentConstructor] |
||
| 18 | final class Table |
||
| 19 | { |
||
| 20 | /** |
||
| 21 | * @param Column[] $columns |
||
| 22 | * @param PrimaryKey|null $primary |
||
| 23 | * @param Index[] $indexes |
||
| 24 | */ |
||
| 25 | 86 | public function __construct( |
|
| 26 | private array $columns = [], |
||
| 27 | private ?PrimaryKey $primary = null, |
||
| 28 | private array $indexes = [], |
||
| 29 | ) { |
||
| 30 | 86 | } |
|
| 31 | |||
| 32 | 38 | public function getColumns(): array |
|
| 35 | } |
||
| 36 | |||
| 37 | 74 | public function getPrimary(): ?PrimaryKey |
|
| 38 | { |
||
| 39 | 74 | return $this->primary; |
|
| 40 | } |
||
| 41 | |||
| 42 | 74 | public function getIndexes(): array |
|
| 45 | } |
||
| 46 | } |
||
| 47 |