date = $this->date ?? new \DateTime(); } public function getId(): ?int { return $this->id; } public function getProject(): ?Project { return $this->project; } public function setProject(?Project $project): static { $this->project = $project; return $this; } public function getTitle(): ?string { return $this->title; } public function setTitle(string $title): static { $this->title = $title; return $this; } public function getSubtitle(): ?string { return $this->subtitle; } public function setSubtitle(string $subtitle): static { $this->subtitle = $subtitle; return $this; } public function getBody(): ?string { return $this->body; } public function setBody(string $body): static { $this->body = $body; return $this; } public function getDate(): ?\DateTimeInterface { return $this->date; } public function setDate(\DateTimeInterface $date): static { $this->date = $date; return $this; } public function getCover(): ?string { return $this->cover; } public function setCover(?string $cover): static { $this->cover = $cover; return $this; } }