Conditions | 1 |
Paths | 1 |
Total Lines | 8 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php |
||
14 | 15 | public static function new(string $alias, array $registeredAliases) : self |
|
15 | { |
||
16 | 15 | return new self( |
|
17 | 15 | sprintf( |
|
18 | "The given alias '%s' is not part of any FROM or JOIN clause table. " |
||
19 | 15 | . 'The currently registered aliases are: %s.', |
|
20 | 15 | $alias, |
|
21 | 15 | implode(', ', $registeredAliases) |
|
22 | ) |
||
26 |