public function __construct(Uuid $id, Name $name, EmailAddress $emailAddress) { $this->id = $id; $this->name = $name; $this->emailAddress = $emailAddress; } public function getId(): Uuid { /**/ } public function getName(): Name { /**/ } public function setName(Name $name): Attendee { /**/ } public function getEmailAddress(): EmailAddress { /**/ } public function setEmailAddress(EmailAddress $emailAddress): Attendee { $this->emailAddress = $emailAddress; return $this; } }
new DateTimeImmutable('2019-03-13' . ' ' . '07:30'), new DateTimeImmutable('2019-03-15' . ' ' . '18:00') ), false, 'ConFoo Montreal is a multi-technology conference for developers.', new Program([ new Slot( new SlotDuration( new DateTimeImmutable('2019-03-13' . ' ' . '14:15'), new DateTimeImmutable('2019-03-13' . ' ' . '15:00') ), 'Technically DDD', 'Montreal 3' ), new Slot( new SlotDuration( new DateTimeImmutable('2019-03-15' . ' ' . '09:00'), new DateTimeImmutable('2019-03-15' . ' ' . '09:45') ), 'Refactoring the Domain Guided by Tests', 'ST-Laurent 7' ), ]) // ..