1 | <?php |
||
14 | class RepertoireSeason |
||
15 | { |
||
16 | /** |
||
17 | * @ORM\Id() |
||
18 | * @ORM\GeneratedValue() |
||
19 | * @ORM\Column(type="integer") |
||
20 | * @JMS\Expose() |
||
21 | */ |
||
22 | private $id; |
||
23 | |||
24 | /** |
||
25 | * @ORM\Column(type="datetime") |
||
26 | * @JMS\Expose() |
||
27 | */ |
||
28 | private $startDate; |
||
29 | |||
30 | /** |
||
31 | * @ORM\Column(type="datetime") |
||
32 | * @JMS\Expose() |
||
33 | */ |
||
34 | private $endDate; |
||
35 | |||
36 | /** |
||
37 | * @ORM\Column(type="integer", unique=true) |
||
38 | * @JMS\Expose() |
||
39 | */ |
||
40 | private $number; |
||
41 | |||
42 | /** |
||
43 | * @ORM\ManyToMany(targetEntity="App\Entity\Performance", mappedBy="seasons") |
||
44 | */ |
||
45 | private $performances; |
||
46 | |||
47 | /** |
||
48 | * @JMS\Expose() |
||
49 | */ |
||
50 | public $performanceCount; |
||
51 | |||
52 | public function __construct() |
||
56 | |||
57 | public function getId(): ?int |
||
61 | |||
62 | 3 | public function getStartDate(): ?\DateTime |
|
66 | |||
67 | public function setStartDate(?\DateTime $startDate): self |
||
73 | |||
74 | 3 | public function getEndDate(): ?\DateTime |
|
78 | |||
79 | public function setEndDate(?\DateTime $endDate): self |
||
85 | |||
86 | 3 | public function getNumber(): ?int |
|
90 | |||
91 | public function setNumber(int $number): self |
||
97 | |||
98 | /** |
||
99 | * @return Collection|Performance[] |
||
100 | */ |
||
101 | public function getPerformances(): Collection |
||
105 | |||
106 | public function addPerformance(Performance $performance): self |
||
115 | |||
116 | public function removePerformance(Performance $performance): self |
||
125 | |||
126 | /** |
||
127 | * @JMS\VirtualProperty() |
||
128 | * @JMS\SerializedName("name") |
||
129 | */ |
||
130 | 3 | public function __toString() |
|
140 | } |
||
141 |