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