for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Level23\Dynadot\Dto;
final class EmailForwarding implements DtoInterface
{
public string $type;
public function __construct(string $type = '')
$this->type = $type;
}
public static function fromArray(array $data): self
return new self(
$data['type'] ?? ''
);
/**
* @return array<string, string>
*/
public function jsonSerialize(): array
return [
'type' => $this->type,
];