1 | <?php |
||
15 | class Holiday |
||
16 | { |
||
17 | /** |
||
18 | * @Id |
||
19 | * @Column(type="string", length=40) |
||
20 | */ |
||
21 | private $id; |
||
22 | |||
23 | /** |
||
24 | * @Column(type="date") |
||
25 | */ |
||
26 | private $beginAt; |
||
27 | |||
28 | /** |
||
29 | * @Column(type="date") |
||
30 | */ |
||
31 | private $endAt; |
||
32 | |||
33 | public function __construct() |
||
39 | |||
40 | public function getId() |
||
44 | |||
45 | public function match(\DateTime $day) |
||
53 | |||
54 | public function getBeginAt() |
||
58 | |||
59 | public function setBeginAt(\DateTime $beginAt) |
||
65 | |||
66 | public function getEndAt() |
||
70 | |||
71 | public function setEndAt(\DateTime $endAt) |
||
77 | |||
78 | /** |
||
79 | * @Assert\Callback() |
||
80 | */ |
||
81 | public function assertDateInterval(ExecutionContextInterface $context) |
||
87 | } |
||
88 |