| Total Complexity | 5 |
| Total Lines | 43 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 18 | class WithConfigurationException extends Exception |
||
| 19 | { |
||
| 20 | public static function configDirNotExists(string $path): self |
||
| 21 | { |
||
| 22 | return new self(sprintf( |
||
| 23 | 'Config directory "%s" not exists.', |
||
| 24 | $path |
||
| 25 | )); |
||
| 26 | } |
||
| 27 | |||
| 28 | public static function configFileNotExists(string $dir, string $fileName): self |
||
| 29 | { |
||
| 30 | return new self(sprintf( |
||
| 31 | 'Configuration file "%s" not found in directory: "%s"', |
||
| 32 | $fileName, |
||
| 33 | $dir |
||
| 34 | )); |
||
| 35 | } |
||
| 36 | |||
| 37 | public static function containerFileNotExist(string $dir, string $fileName): self |
||
| 38 | { |
||
| 39 | return new self(sprintf( |
||
| 40 | 'Container config file "%s" not found in directory: "%s"', |
||
| 41 | $fileName, |
||
| 42 | $dir |
||
| 43 | )); |
||
| 44 | } |
||
| 45 | |||
| 46 | public static function pipelineFileNotExists(string $dir, string $fileName): self |
||
| 47 | { |
||
| 48 | return new self(sprintf( |
||
| 49 | 'Pipeline config file "%s" not found in directory: "%s"', |
||
| 50 | $fileName, |
||
| 51 | $dir |
||
| 52 | )); |
||
| 53 | } |
||
| 54 | |||
| 55 | public static function routesFileNotExists(string $dir, string $fileName): self |
||
| 61 | )); |
||
| 62 | } |
||
| 63 | } |
||
| 64 |