1 | <?php |
||
20 | class Author extends stdClass |
||
21 | { |
||
22 | /** |
||
23 | * @var UuidInterface |
||
24 | */ |
||
25 | private $authorId; |
||
26 | |||
27 | /** |
||
28 | * @var string |
||
29 | */ |
||
30 | private $name; |
||
31 | |||
32 | /** |
||
33 | * @var string |
||
34 | */ |
||
35 | private $email; |
||
36 | |||
37 | /** |
||
38 | * @var string |
||
39 | */ |
||
40 | private $bio; |
||
41 | |||
42 | /** |
||
43 | * @var DateTime|null |
||
44 | */ |
||
45 | private $birthdate; |
||
46 | |||
47 | /** |
||
48 | * Author constructor. |
||
49 | * @param UuidInterface $authorId |
||
50 | * @param string $name |
||
51 | * @param string $email |
||
52 | * @param string $bio |
||
53 | * @param DateTime|null $birthdate |
||
54 | */ |
||
55 | 34 | public function __construct(UuidInterface $authorId, $name, $email, $bio, DateTime $birthdate = null) |
|
63 | |||
64 | /** |
||
65 | * @codeCoverageIgnore |
||
66 | * @return UuidInterface |
||
67 | */ |
||
68 | public function getAuthorId(): UuidInterface |
||
72 | |||
73 | /** |
||
74 | * @codeCoverageIgnore |
||
75 | * @param UuidInterface $authorId |
||
76 | */ |
||
77 | public function setAuthorId(UuidInterface $authorId) |
||
81 | |||
82 | /** |
||
83 | * @codeCoverageIgnore |
||
84 | * @return string |
||
85 | */ |
||
86 | public function getName(): string |
||
90 | |||
91 | /** |
||
92 | * @codeCoverageIgnore |
||
93 | * @param string $name |
||
94 | */ |
||
95 | public function setName(string $name) |
||
99 | |||
100 | /** |
||
101 | * @codeCoverageIgnore |
||
102 | * @return string |
||
103 | */ |
||
104 | public function getEmail(): string |
||
108 | |||
109 | /** |
||
110 | * @param string $email |
||
111 | */ |
||
112 | 3 | public function setEmail(string $email) |
|
120 | |||
121 | /** |
||
122 | * @codeCoverageIgnore |
||
123 | * @return string |
||
124 | */ |
||
125 | public function getBio(): string |
||
129 | |||
130 | /** |
||
131 | * @codeCoverageIgnore |
||
132 | * @param string $bio |
||
133 | */ |
||
134 | public function setBio(string $bio) |
||
138 | |||
139 | /** |
||
140 | * @codeCoverageIgnore |
||
141 | * @return DateTime|null |
||
142 | */ |
||
143 | public function getBirthdate() |
||
147 | |||
148 | /** |
||
149 | * @codeCoverageIgnore |
||
150 | * @param DateTime|null $birthdate |
||
151 | */ |
||
152 | public function setBirthdate(DateTime $birthdate = null) |
||
156 | } |
||
157 |