1 | <?php |
||
11 | * @ORM\Entity |
||
12 | * @ORM\Table(name="doctrine_orm_module_date") |
||
13 | */ |
||
14 | class Date |
||
15 | { |
||
16 | /** |
||
17 | * @ORM\Id |
||
18 | * @ORM\Column(type="integer"); |
||
19 | * @ORM\GeneratedValue(strategy="AUTO") |
||
20 | */ |
||
21 | protected int $id; |
||
|
|||
22 | |||
23 | /** @ORM\Column(type="date", nullable=true) */ |
||
24 | protected DateTime $date; |
||
25 | |||
26 | public function getId() : ?int |
||
27 | { |
||
28 | return $this->id; |
||
29 | } |
||
30 | |||
31 | public function setDate(DateTime $date) : void |
||
32 | { |
||
33 | $this->date = $date; |
||
34 | } |
||
35 | |||
36 | public function getDate() : DateTime |
||
37 | { |
||
38 | return $this->date; |
||
39 | } |
||
40 | } |
||
41 |