Total Complexity | 2 |
Total Lines | 16 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 0 |
1 | <?php |
||
9 | final class InvalidMagicMethodCall extends \BadMethodCallException implements RepositoryException |
||
10 | { |
||
11 | public static function becauseFieldNotFoundIn( |
||
12 | string $entityName, |
||
13 | string $fieldName, |
||
14 | string $method |
||
15 | ) : self { |
||
16 | return new self( |
||
17 | "Entity '" . $entityName . "' has no field '" . $fieldName . "'. " . |
||
18 | "You can therefore not call '" . $method . "' on the entities' repository." |
||
19 | ); |
||
20 | } |
||
21 | |||
22 | public static function onMissingParameter(string $methodName) : self |
||
25 | } |
||
26 | } |
||
27 |