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