| Total Complexity | 4 |
| Total Lines | 35 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 7 | final class JobException extends AenthillException |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * @param string $identifier |
||
| 11 | * @return self |
||
| 12 | */ |
||
| 13 | public static function cannotAddOnly(string $identifier): self |
||
| 14 | { |
||
| 15 | return new self("\"$identifier\" is already referenced in \"except\" section"); |
||
| 16 | } |
||
| 17 | |||
| 18 | /** |
||
| 19 | * @param string $identifier |
||
| 20 | * @return self |
||
| 21 | */ |
||
| 22 | public static function cannotAddExcept(string $identifier): self |
||
| 23 | { |
||
| 24 | return new self("\"$identifier\" is already referenced in \"only\" section"); |
||
| 25 | } |
||
| 26 | |||
| 27 | /** |
||
| 28 | * @return self |
||
| 29 | */ |
||
| 30 | public static function branchIsNull(): self |
||
| 33 | } |
||
| 34 | |||
| 35 | /** |
||
| 36 | * @param string $deployType |
||
| 37 | * @return self |
||
| 38 | */ |
||
| 39 | public static function unknownDeployType(string $deployType): self |
||
| 42 | } |
||
| 43 | } |
||
| 44 |