1 | <?php |
||
16 | final class MailingList implements ApiResponse |
||
17 | { |
||
18 | private $name; |
||
19 | private $address; |
||
20 | private $accessLevel; |
||
21 | private $replyPreference; |
||
22 | private $description; |
||
23 | private $membersCount; |
||
24 | private $createdAt; |
||
25 | |||
26 | 3 | public static function create(array $data): self |
|
39 | |||
40 | 3 | private function __construct() |
|
43 | |||
44 | public function getName(): ?string |
||
48 | |||
49 | public function getAddress(): ?string |
||
53 | |||
54 | 1 | public function getAccessLevel(): ?string |
|
58 | |||
59 | public function getReplyPreference(): ?string |
||
63 | |||
64 | public function getDescription(): ?string |
||
68 | |||
69 | 2 | public function getMembersCount(): int |
|
73 | |||
74 | public function getCreatedAt(): \DateTimeImmutable |
||
78 | } |
||
79 |