| Total Complexity | 3 |
| Total Lines | 27 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 22 | class LoggerException extends Exception |
||
| 23 | { |
||
| 24 | /** |
||
| 25 | * @param string $name |
||
| 26 | * @return LoggerException |
||
| 27 | */ |
||
| 28 | public static function unsupportedAdapter(string $name): LoggerException |
||
| 29 | { |
||
| 30 | return new static(t('exception.not_supported_adapter', $name)); |
||
| 31 | } |
||
| 32 | |||
| 33 | /** |
||
| 34 | * @param string $name |
||
| 35 | * @return LoggerException |
||
| 36 | */ |
||
| 37 | public static function logPathIsNotDirectory(string $name): LoggerException |
||
| 38 | { |
||
| 39 | return new static(t('exception.log_path_is_not_directory', $name)); |
||
| 40 | } |
||
| 41 | |||
| 42 | /** |
||
| 43 | * @param string $name |
||
| 44 | * @return LoggerException |
||
| 45 | */ |
||
| 46 | public static function logPathIsNotFile(string $name): LoggerException |
||
| 49 | } |
||
| 50 | } |