for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace VideoGamesRecords\DwhBundle\Traits\Entity;
use DateTime;
use Doctrine\ORM\Mapping as ORM;
trait DateTrait
{
#[ORM\Id]
#[ORM\Column(type: 'date', nullable: false)]
private DateTime $date;
public function getDate(): DateTime
return $this->date;
}
public function setDate(DateTime $date): void
$this->date = $date;