| Total Complexity | 2 |
| Total Lines | 58 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 9 | final class MissingClassDefinitionException extends RuntimeException |
||
| 10 | { |
||
| 11 | public static function missingDefinition(string $className, string $method, string $found): self |
||
| 12 | { |
||
| 13 | $suggestions = self::getSuggestions($method); |
||
| 14 | |||
| 15 | return new self(" |
||
| 16 | Missing the concrete return type for the method `{$method}()` (Found: `{$found}`). |
||
| 17 | |||
| 18 | Class: `{$className}` |
||
| 19 | |||
| 20 | Possible solutions: |
||
| 21 | {$suggestions} |
||
| 22 | |||
| 23 | Learn more: https://gacela-project.com/docs/service-resolution |
||
| 24 | "); |
||
| 25 | } |
||
| 26 | |||
| 27 | private static function getSuggestions(string $method): string |
||
| 67 | } |
||
| 68 | } |
||
| 69 |