datetime = new \DateTimeImmutable('now'); } /** * Get id. * * @return int */ public function getId() { return $this->id; } /** * Set datetime. * * @param datetime_immutable $datetime * * @return AbstractTaskPlaceEvent */ public function setDatetime($datetime) { $this->datetime = $datetime; return $this; } /** * Get datetime. * * @return datetime_immutable */ public function getDatetime() { return $this->datetime; } /** * Set transition. * * @param string $transition * * @return AbstractTaskPlaceEvent */ public function setTransition($transition) { $this->transition = $transition; return $this; } /** * Get transition. * * @return string */ public function getTransition() { return $this->transition; } /** * Set data. * * @param string $data * * @return AbstractTaskPlaceEvent */ public function setData($data) { $this->data = $data; return $this; } /** * Get data. * * @return string */ public function getData() { return $this->data; } public function getAuthor(): User { return $this->author; } public function setAuthor(User $author) { $this->author = $author; return $this; } }