reasons = new ArrayCollection(); $this->comment = new CommentEmbeddable(); } /** * Add a reason. * * @return Activity */ public function addReason(ActivityReason $reason) { $this->reasons[] = $reason; return $this; } /** * Get attendee. * * @return bool */ public function getAttendee() { return $this->attendee; } /** * get the center * center is extracted from person. * * @return Center */ public function getCenter() { return $this->person->getCenter(); } /** * @return \Chill\MainBundle\Entity\Embeddalbe\CommentEmbeddable */ public function getComment() { return $this->comment; } /** * Get date. * * @return DateTime */ public function getDate() { return $this->date; } /** * Get durationTime. * * @return DateTime */ public function getDurationTime() { return $this->durationTime; } /** * Get id. * * @return int */ public function getId() { return $this->id; } /** * Get person. * * @return Person */ public function getPerson() { return $this->person; } /** * Get reasons. * * @return Collection */ public function getReasons() { return $this->reasons; } /** * Get scope. * * @return Scope */ public function getScope() { return $this->scope; } /** * Get type. * * @return ActivityType */ public function getType() { return $this->type; } /** * Get user. * * @return User */ public function getUser() { return $this->user; } public function removeReason(ActivityReason $reason) { $this->reasons->removeElement($reason); } /** * Set attendee. * * @param bool $attendee * * @return Activity */ public function setAttendee($attendee) { $this->attendee = $attendee; return $this; } /** * @param \Chill\MainBundle\Entity\Embeddalbe\CommentEmbeddable $comment */ public function setComment($comment) { $this->comment = $comment; } /** * Set date. * * @param DateTime $date * * @return Activity */ public function setDate($date) { $this->date = $date; return $this; } /** * Set durationTime. * * @param DateTime $durationTime * * @return Activity */ public function setDurationTime($durationTime) { $this->durationTime = $durationTime; return $this; } /** * Set person. * * @return Activity */ public function setPerson(Person $person) { $this->person = $person; return $this; } /** * Set scope. * * @return Activity */ public function setScope(Scope $scope) { $this->scope = $scope; return $this; } /** * Set type. * * @return Activity */ public function setType(ActivityType $type) { $this->type = $type; return $this; } /** * Set user. * * @return Activity */ public function setUser(User $user) { $this->user = $user; return $this; } }