Conditions | 1 |
Paths | 1 |
Total Lines | 10 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
14 | public static function new(Table $localTable, ForeignKeyConstraint $foreignKey) : self |
||
15 | { |
||
16 | return new self( |
||
17 | sprintf( |
||
18 | "The performed schema operation on %s requires a named foreign key, " . |
||
19 | "but the given foreign key from (%s) onto foreign table '%s' (%s) is currently unnamed.", |
||
20 | $localTable->getName(), |
||
21 | implode(', ', $foreignKey->getColumns()), |
||
22 | $foreignKey->getForeignTableName(), |
||
23 | implode(', ', $foreignKey->getForeignColumns()) |
||
24 | ) |
||
28 |