Total Complexity | 3 |
Total Lines | 35 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 2 | ||
Bugs | 0 | Features | 2 |
1 | <?php |
||
5 | final class NameserverUpdateResult implements DtoInterface |
||
6 | { |
||
7 | public int $code; |
||
8 | public string $message; |
||
9 | |||
10 | 6 | private function __construct( |
|
11 | int $code, |
||
12 | string $message, |
||
13 | ) { |
||
14 | 6 | $this->code = $code; |
|
15 | 6 | $this->message = $message; |
|
16 | } |
||
17 | |||
18 | /** |
||
19 | * Hydrate from Dynadot's response. |
||
20 | * |
||
21 | * @param array<string,mixed> $data |
||
22 | * @return self |
||
23 | */ |
||
24 | 6 | public static function fromArray(array $data): self |
|
29 | 6 | ); |
|
30 | } |
||
31 | |||
32 | /** |
||
33 | * @return array<string, mixed> |
||
34 | */ |
||
35 | 1 | public function jsonSerialize(): array |
|
43 |