1 | <?php |
||
16 | final class MailingList implements ApiResponse |
||
17 | { |
||
18 | private $name; |
||
19 | private $address; |
||
20 | private $accessLevel; |
||
21 | private $description; |
||
22 | private $membersCount; |
||
23 | private $createdAt; |
||
24 | |||
25 | 3 | public static function create(array $data): self |
|
37 | |||
38 | 3 | private function __construct() |
|
41 | |||
42 | public function getName(): ?string |
||
46 | |||
47 | public function getAddress(): ?string |
||
51 | |||
52 | 1 | public function getAccessLevel(): ?string |
|
56 | |||
57 | public function getDescription(): ?string |
||
61 | |||
62 | 2 | public function getMembersCount(): int |
|
66 | |||
67 | public function getCreatedAt(): \DateTimeImmutable |
||
71 | } |
||
72 |