src/Entity/BaseDateEntity.php line 16
<?php/** @author Guerby Duval <info@tranzaksyon.com>* @link https://tranzaksyon.com* @copyright You are not allowed to remove this author "Guerby Duval <info@tranzaksyon.com>", the link "https://tranzaksyon.com" neither this copyright.*/namespace App\Entity;use Doctrine\DBAL\Types\Types;use Doctrine\ORM\Mapping as ORM;use Doctrine\ORM\Mapping\MappedSuperclass;use Symfony\Component\Serializer\Annotation\Groups;#[MappedSuperclass]abstract class BaseDateEntity{#[ORM\Column(type: Types::DATETIME_MUTABLE, options: ['default' => 'CURRENT_TIMESTAMP'])]#[Groups(['general_doc_out'])]private ?\DateTimeInterface $creationDate;#[ORM\Column(type: Types::DATETIME_MUTABLE, nullable: true)]#[Groups(['general_doc_out'])]private ?\DateTimeInterface $dateUpdate;public function __construct(){$this->creationDate = new \DateTime();$this->dateUpdate = new \DateTime();}public function getCreationDate(): ?\DateTimeInterface{return $this->creationDate;}public function setCreationDate(\DateTimeInterface $creationDate): self{$this->creationDate = $creationDate;return $this;}public function getDateUpdate(): ?\DateTimeInterface{return $this->dateUpdate;}public function setDateUpdate(\DateTimeInterface $dateUpdate): self{$this->dateUpdate = $dateUpdate;return $this;}}