| Total Complexity | 3 |
| Total Lines | 28 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 12 | final class TableSchema extends AbstractTableSchema |
||
| 13 | { |
||
| 14 | private array $foreignKeys = []; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * @return array foreign keys of this table. Each array element is of the following structure: |
||
| 18 | * |
||
| 19 | * ```php |
||
| 20 | * [ |
||
| 21 | * 'ForeignTableName', |
||
| 22 | * 'fk1' => 'pk1', // pk1 is in foreign table |
||
| 23 | * 'fk2' => 'pk2', // if composite foreign key |
||
| 24 | * ] |
||
| 25 | * ``` |
||
| 26 | */ |
||
| 27 | public function getForeignKeys(): array |
||
| 28 | { |
||
| 29 | return $this->foreignKeys; |
||
| 30 | } |
||
| 31 | |||
| 32 | public function foreignKey(string $key, array $value): void |
||
| 35 | } |
||
| 36 | |||
| 37 | public function foreignKeys(array $value): void |
||
| 42 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.