| Total Complexity | 5 |
| Total Lines | 25 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 9 | final class PayloadException extends AenthillException |
||
| 10 | { |
||
| 11 | public static function emptyPayload(string $event): self |
||
| 14 | } |
||
| 15 | |||
| 16 | public static function missingDockerComposeFilename(): self |
||
| 19 | } |
||
| 20 | |||
| 21 | public static function missingKubernetesPathname(): self |
||
| 22 | { |
||
| 23 | return new self(CommonEvents::NEW_DEPLOY_KUBERNETES_JOB_EVENT . ' event requires a payload with the Kubernetes pathname'); |
||
| 24 | } |
||
| 25 | |||
| 26 | public static function missingServiceName(): self |
||
| 27 | { |
||
| 28 | return new self(CommonEvents::NEW_BUILD_IMAGE_JOB_EVENT . ' event requires a payload with the service name'); |
||
| 29 | } |
||
| 30 | |||
| 31 | public static function missingDockerfileName(): self |
||
| 34 | } |
||
| 35 | } |
||
| 36 |