| 1 | <?php |
||
| 20 | abstract class Participant |
||
| 21 | { |
||
| 22 | protected $id; |
||
| 23 | protected $createdOn; |
||
| 24 | protected $email; |
||
| 25 | protected $username; |
||
| 26 | protected $updatedOn; |
||
| 27 | |||
| 28 | public function __construct(ParticipantId $id, EmailAddress $email, Username $username) |
||
| 36 | |||
| 37 | public function id() : ParticipantId |
||
| 41 | |||
| 42 | public function changeEmail(EmailAddress $email) |
||
| 47 | |||
| 48 | public function changeUsername(Username $username) |
||
| 53 | |||
| 54 | public function createdOn() : \DateTimeInterface |
||
| 58 | |||
| 59 | public function email() : EmailAddress |
||
| 63 | |||
| 64 | public function updatedOn() : \DateTimeInterface |
||
| 68 | |||
| 69 | public function username() : Username |
||
| 73 | |||
| 74 | public function __toString() |
||
| 78 | } |
||
| 79 |