| 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 | 3 | public function createContact(): Contact |
|
| 29 | |||
| 30 | 1 | public function setEmail(string $email): self |
|
| 36 | |||
| 37 | 2 | public function setName(string $name): self |
|
| 43 | |||
| 44 | 1 | public function setUrl(string $url): self |
|
| 50 | |||
| 51 | 3 | private function getEmail(): ?string |
|
| 55 | |||
| 56 | 3 | private function getName(): ?string |
|
| 60 | |||
| 61 | 3 | private function getUrl(): ?string |
|
| 65 | } |
||
| 66 |