date) { $this->date = new \DateTime(); } } /** * Get id * * @return integer */ public function getId() { return $this->id; } /** * Set date * * @param \DateTime $date * @return SubscriptionEvent */ public function setDate($date) { $this->date = $date; return $this; } /** * Get date * * @return \DateTime */ public function getDate() { return $this->date; } /** * Set subscriber * * @param User $subscriber * @return SubscriptionEvent */ public function setSubscriber(User $subscriber) { $this->subscriber = $subscriber; return $this; } /** * Get subscriber * * @return User */ public function getSubscriber() { return $this->subscriber; } /** * Set author * * @param User $author * @return SubscriptionEvent */ public function setAuthor(User $author) { $this->author = $author; return $this; } /** * Get author * * @return User */ public function getAuthor() { return $this->author; } /** * Set action * * @param string $action * @return SubscriptionEvent */ public function setAction($action) { $this->action = $action; return $this; } /** * Get action * * @return string */ public function getAction() { return $this->action; } }