createdBy; } public function setCreatedBy(?User $createdBy): self { $this->createdBy = $createdBy; return $this; } public function getCreatedAt(): ?DateTime { return $this->createdAt; } public function setCreatedAt(DateTime $createdAt): self { $this->createdAt = $createdAt; return $this; } public function setCreatedAtNowNoSeconds(): self { $this->setCreatedAt(DateTime::createFromFormat('Y-m-d H:i', date('Y-m-d H:i'))); return $this; } public function setCreatedAtNow(): self { $this->setCreatedAt(new DateTime()); return $this; } }