Total Complexity | 2 |
Total Lines | 23 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
14 | final class TableSchema extends AbstractTableSchema |
||
15 | { |
||
16 | private array $foreignKeys = []; |
||
17 | |||
18 | /** |
||
19 | * @return array foreign keys of this table. Each array element is of the following structure: |
||
20 | * |
||
21 | * ```php |
||
22 | * [ |
||
23 | * 'ForeignTableName', |
||
24 | * 'fk1' => 'pk1', // pk1 is in foreign table |
||
25 | * 'fk2' => 'pk2', // if composite foreign key |
||
26 | * ] |
||
27 | * ``` |
||
28 | */ |
||
29 | 1 | public function getForeignKeys(): array |
|
32 | } |
||
33 | |||
34 | 8 | public function foreignKey(string $id, array $to): void |
|
39 |