| Total Complexity | 4 |
| Total Lines | 20 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 9 | final class PayloadException extends AenthillException |
||
| 10 | { |
||
| 11 | public static function emptyPayload(string $event): self |
||
| 12 | { |
||
| 13 | return new self("$event event requires a payload"); |
||
| 14 | } |
||
| 15 | |||
| 16 | public static function missingDockerComposeFilename(): self |
||
| 17 | { |
||
| 18 | return new self(CommonEvents::NEW_DEPLOY_DOCKER_COMPOSE_JOB_EVENT . ' event requires a payload with the Docker Compose filename'); |
||
| 19 | } |
||
| 20 | |||
| 21 | public static function missingServiceName(): self |
||
| 22 | { |
||
| 23 | return new self(CommonEvents::NEW_BUILD_IMAGE_JOB_EVENT . ' event requires a payload with the service name'); |
||
| 24 | } |
||
| 25 | |||
| 26 | public static function missingDockerfileName(): self |
||
| 29 | } |
||
| 30 | } |
||
| 31 |