src/Entity/Common/DateInterval.php line 9
<?phpnamespace App\Entity\Common;use DateTime;use Doctrine\ORM\Mapping as ORM;#[ORM\Embeddable]class DateInterval implements DateTimeIntervalInterface{#[ORM\Column(type: 'date', nullable: true)]private ?DateTime $from = null;/*** @var DateTime|null*/#[ORM\Column(type: 'date', nullable: true)]private ?DateTime $to = null;public function getFrom(): ?DateTime{return $this->from;}public function setFrom(?DateTime $from): void{$this->from = $from;}public function getTo(): ?DateTime{return $this->to;}public function setTo(?DateTime $to): void{$this->to = $to;}public function isEmpty():bool{return is_null($this->from) && is_null($this->to);}}