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