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