1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
/* |
4
|
|
|
* This file is part of the TheAlternativeZurich/events project. |
5
|
|
|
* |
6
|
|
|
* (c) Florian Moser <[email protected]> |
7
|
|
|
* |
8
|
|
|
* For the full copyright and license information, please view the LICENSE |
9
|
|
|
* file that was distributed with this source code. |
10
|
|
|
*/ |
11
|
|
|
|
12
|
|
|
namespace App\Entity\Traits; |
13
|
|
|
|
14
|
|
|
use Doctrine\ORM\Mapping as ORM; |
15
|
|
|
|
16
|
|
|
trait EventTrait |
17
|
|
|
{ |
18
|
|
|
/** |
19
|
|
|
* @var string|null |
20
|
|
|
* |
21
|
|
|
* @ORM\Column(type="text") |
22
|
|
|
*/ |
23
|
|
|
private $organizer; |
24
|
|
|
|
25
|
|
|
/** |
26
|
|
|
* @var string|null |
27
|
|
|
* |
28
|
|
|
* @ORM\Column(type="text") |
29
|
|
|
*/ |
30
|
|
|
private $name; |
31
|
|
|
|
32
|
|
|
/** |
33
|
|
|
* @var string|null |
34
|
|
|
* |
35
|
|
|
* @ORM\Column(type="text", nullable=true) |
36
|
|
|
*/ |
37
|
|
|
private $description; |
38
|
|
|
|
39
|
|
|
/** |
40
|
|
|
* @var \DateTime|null |
41
|
|
|
* |
42
|
|
|
* @ORM\Column(type="datetime") |
43
|
|
|
*/ |
44
|
|
|
private $startDate; |
45
|
|
|
|
46
|
|
|
/** |
47
|
|
|
* @var \DateTime|null |
48
|
|
|
* |
49
|
|
|
* @ORM\Column(type="datetime", nullable=true) |
50
|
|
|
*/ |
51
|
|
|
private $endDate; |
52
|
|
|
|
53
|
|
|
public function getOrganizer(): ?string |
54
|
|
|
{ |
55
|
|
|
return $this->organizer; |
56
|
|
|
} |
57
|
|
|
|
58
|
|
|
public function setOrganizer(?string $organizer): void |
59
|
|
|
{ |
60
|
|
|
$this->organizer = $organizer; |
61
|
|
|
} |
62
|
|
|
|
63
|
|
|
public function getName(): ?string |
64
|
|
|
{ |
65
|
|
|
return $this->name; |
66
|
|
|
} |
67
|
|
|
|
68
|
|
|
public function setName(?string $name): void |
69
|
|
|
{ |
70
|
|
|
$this->name = $name; |
71
|
|
|
} |
72
|
|
|
|
73
|
|
|
public function getDescription(): ?string |
74
|
|
|
{ |
75
|
|
|
return $this->description; |
76
|
|
|
} |
77
|
|
|
|
78
|
|
|
public function setDescription(?string $description): void |
79
|
|
|
{ |
80
|
|
|
$this->description = $description; |
81
|
|
|
} |
82
|
|
|
|
83
|
|
|
public function getStartDate(): ?\DateTime |
84
|
|
|
{ |
85
|
|
|
return $this->startDate; |
86
|
|
|
} |
87
|
|
|
|
88
|
|
|
public function setStartDate(?\DateTime $startDate): void |
89
|
|
|
{ |
90
|
|
|
$this->startDate = $startDate; |
91
|
|
|
} |
92
|
|
|
|
93
|
|
|
public function getEndDate(): ?\DateTime |
94
|
|
|
{ |
95
|
|
|
return $this->endDate; |
96
|
|
|
} |
97
|
|
|
|
98
|
|
|
public function setEndDate(?\DateTime $endDate): void |
99
|
|
|
{ |
100
|
|
|
$this->endDate = $endDate; |
101
|
|
|
} |
102
|
|
|
} |
103
|
|
|
|