<?php
/**
* Created by simpson <simpsonwork@gmail.com>
* Date: 2019-04-16
* Time: 19:02
*/
namespace App\Entity\Saloon;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Embeddable]
final class WorkingHours
{
#[ORM\Column(name: 'since', type: 'time_immutable', nullable: true)]
protected ?\DateTimeImmutable $since;
#[ORM\Column(name: 'till', type: 'time_immutable', nullable: true)]
protected ?\DateTimeImmutable $till;
public function __construct(?\DateTimeImmutable $since, ?\DateTimeImmutable $till)
{
$this->since = $since;
$this->till = $till;
}
public function getSince(): ?\DateTimeImmutable
{
return $this->since;
}
public function getTill(): ?\DateTimeImmutable
{
return $this->till;
}
}