image = new NullMedia(); $this->birthday = new \DateTime('now'); $this->account = new Account(); $this->calendar = new Calendar(); } public function getId() : int { return $this->id; } public function getLocation() : array { return $this->location; } public function addLocation(Location $location) { $this->location[] = $location; } public function getCalendar() { return $this->calendar; } public function getImage() : Media { return $this->image; } public function setImage(Media $image) /* : void */ { $this->image = $image; } public function setAccount(Account $account) /* : void */ { $this->account = $account; } public function getAccount() : Account { return $this->account ?? new NullAccount(); } public function setBirthday(\DateTime $birthday) /* : void */ { $this->birthday = $birthday; } public function getBirthday() : \DateTime { return $this->birthday; } }