createdAt; } public function setCreatedAt( DateTimeInterface $createdAt ): self { $this->createdAt = $createdAt; return $this; } public function getCreatedAtAsString(): string { return $this->createdAt->format( 'c' ); } public function addDaysToDate( DateTime $date, int $days ) { return $date->add(new \DateInterval('P'.$days.'D')); } }