1 | <?php |
||
10 | final class ContactBuilder implements ContactFactory |
||
11 | { |
||
12 | use Properties\OptionalExtensions; |
||
13 | |||
14 | private $email; |
||
15 | |||
16 | private $name; |
||
17 | |||
18 | private $url; |
||
19 | |||
20 | public function createContact(): Contact |
||
29 | |||
30 | public function setEmail(string $email): self |
||
36 | |||
37 | public function setName(string $name): self |
||
43 | |||
44 | public function setUrl(string $url): self |
||
50 | |||
51 | private function getEmail(): ?string |
||
55 | |||
56 | private function getName(): ?string |
||
60 | |||
61 | private function getUrl(): ?string |
||
65 | } |
||
66 |