| Total Complexity | 4 |
| Total Lines | 39 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 7 | final class DockerComposeDeployJobPayload implements JsonPayloadInterface |
||
| 8 | { |
||
| 9 | /** @var string */ |
||
| 10 | private $dockerComposeFilename; |
||
| 11 | |||
| 12 | /** |
||
| 13 | * DockerComposeDeployJobPayload constructor. |
||
| 14 | * @param string $dockerComposeFilename |
||
| 15 | */ |
||
| 16 | public function __construct(string $dockerComposeFilename) |
||
| 17 | { |
||
| 18 | $this->dockerComposeFilename = $dockerComposeFilename; |
||
| 19 | } |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @return array<string,string> |
||
| 23 | */ |
||
| 24 | public function toArray(): array |
||
| 25 | { |
||
| 26 | return [ |
||
| 27 | 'DOCKER_COMPOSE_FILENAME' => $this->dockerComposeFilename, |
||
| 28 | ]; |
||
| 29 | } |
||
| 30 | |||
| 31 | /** |
||
| 32 | * @param array<string,string> $assoc |
||
| 33 | * @return self |
||
| 34 | */ |
||
| 35 | public static function fromArray(array $assoc): self |
||
| 38 | } |
||
| 39 | |||
| 40 | /** |
||
| 41 | * @return string |
||
| 42 | */ |
||
| 43 | public function getDockerComposeFilename(): string |
||
| 46 | } |
||
| 47 | } |
||
| 48 |