| Total Complexity | 4 |
| Total Lines | 31 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 16 | final class MethodDoesNotExist extends BadMethodCallException implements Exception |
||
| 17 | { |
||
| 18 | private string $className; |
||
| 19 | |||
| 20 | private string $methodName; |
||
| 21 | |||
| 22 | 3 | public static function on(string $className, string $methodName): self |
|
| 23 | { |
||
| 24 | 3 | return new self( |
|
| 25 | 3 | 'The handler method ' . $className . '::' . $methodName . ' does not exist. Please check your Tactician ' . |
|
| 26 | 3 | 'mapping configuration or check verify that ' . $methodName . ' is actually declared in . ' . $className, |
|
| 27 | $className, |
||
| 28 | $methodName |
||
| 29 | ); |
||
| 30 | } |
||
| 31 | |||
| 32 | 1 | public function getClassName(): string |
|
| 33 | { |
||
| 34 | 1 | return $this->className; |
|
| 35 | } |
||
| 36 | |||
| 37 | 1 | public function getMethodName(): string |
|
| 40 | } |
||
| 41 | |||
| 42 | 3 | private function __construct(string $message, string $className, string $methodName) |
|
| 49 |