| Total Complexity | 3 |
| Total Lines | 27 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 23 | class ServiceException extends BaseException |
||
| 24 | { |
||
| 25 | /** |
||
| 26 | * @param string $name |
||
| 27 | * @return ServiceException |
||
| 28 | */ |
||
| 29 | public static function serviceNotFound(string $name): ServiceException |
||
| 30 | { |
||
| 31 | return new static(t('service_not_found', $name), E_ERROR); |
||
| 32 | } |
||
| 33 | |||
| 34 | /** |
||
| 35 | * @param array $names |
||
| 36 | * @return ServiceException |
||
| 37 | */ |
||
| 38 | public static function notServiceInstance(array $names): ServiceException |
||
| 41 | } |
||
| 42 | |||
| 43 | /** |
||
| 44 | * @param string $name |
||
| 45 | * @return ServiceException |
||
| 46 | */ |
||
| 47 | public static function undefinedMethod(string $name): ServiceException |
||
| 50 | } |
||
| 51 | } |