| Total Complexity | 3 |
| Total Lines | 44 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 2 | ||
| Bugs | 0 | Features | 2 |
| 1 | <?php |
||
| 5 | final class PriceList implements DtoInterface |
||
| 6 | { |
||
| 7 | public string $currency; |
||
| 8 | public string $unit; |
||
| 9 | public string $transfer; |
||
| 10 | public string $restore; |
||
| 11 | public string $registration; |
||
| 12 | public string $renewal; |
||
| 13 | |||
| 14 | 8 | private function __construct() |
|
| 16 | 8 | } |
|
| 17 | |||
| 18 | /** |
||
| 19 | * Hydrate from Dynadot's response data. |
||
| 20 | * |
||
| 21 | * @param array<string,mixed> $data |
||
| 22 | * @return self |
||
| 23 | */ |
||
| 24 | 8 | public static function fromArray(array $data): self |
|
| 35 | } |
||
| 36 | |||
| 37 | /** |
||
| 38 | * @return array<string, mixed> |
||
| 39 | */ |
||
| 40 | 2 | public function jsonSerialize(): array |
|
| 52 |