Lines
100.00%
1 / 1
Methods
100.00%
1 / 1
Classes
100.00%
1 / 1
| Name | Lines | Methods | CRAP | ||||
|---|---|---|---|---|---|---|---|
| __construct | 100.00% | 1 / 1 | 100.00% | 1 / 1 | 1 | ||
| 14 | final class LiveTable | |
| 15 | { | |
| 16 | /** | |
| 17 | * Create a live-table snapshot. | |
| 18 | * | |
| 19 | * @param string $name | |
| 20 | * @param list<array{name: string, type: string, nullable: bool, default: mixed, primaryKey: bool}> $columns | |
| 21 | * @param list<array{name: string|null, columns: list<string>, unique: bool, where: string|null, nullsNotDistinct: bool}> $indexes | |
| 22 | * @param list<array{columns: list<string>, referencesTable: string, referencesColumns: list<string>, onDelete: string|null, onUpdate: string|null, deferrable: bool, name?: string|null}> $foreignKeys | |
| 23 | * @param list<array{name: string|null, expression: string|null}> $checks | |
| 24 | */ | |
| 25 | public function __construct( | |
| 26 | public readonly string $name, | |
| 27 | public readonly array $columns, | |
| 28 | public readonly array $indexes = [], | |
| 29 | public readonly array $foreignKeys = [], | |
| 30 | public readonly array $checks = [], | |
| 31 | ) { | |
| 32 | } | |
| 33 | } |