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", fetch="EAGER") |
||
44 | */ |
||
45 | private $performances; |
||
46 | |||
47 | /** |
||
48 | * @JMS\Expose() |
||
49 | */ |
||
50 | public $performanceCount; |
||
51 | |||
52 | 1 | public function __construct() |
|
53 | { |
||
54 | 1 | $this->performances = new ArrayCollection(); |
|
55 | 1 | } |
|
56 | |||
57 | public function getId(): ?int |
||
61 | |||
62 | 3 | public function getStartDate(): ?\DateTime |
|
66 | |||
67 | 1 | public function setStartDate(?\DateTime $startDate): self |
|
68 | { |
||
69 | 1 | $this->startDate = $startDate; |
|
70 | |||
71 | 1 | return $this; |
|
72 | } |
||
73 | |||
74 | 3 | public function getEndDate(): ?\DateTime |
|
78 | |||
79 | 1 | public function setEndDate(?\DateTime $endDate): self |
|
80 | { |
||
81 | 1 | $this->endDate = $endDate; |
|
82 | |||
83 | 1 | return $this; |
|
84 | } |
||
85 | |||
86 | 4 | public function getNumber(): ?int |
|
90 | |||
91 | 1 | public function setNumber(int $number): self |
|
92 | { |
||
93 | 1 | $this->number = $number; |
|
94 | |||
95 | 1 | return $this; |
|
96 | } |
||
97 | |||
98 | /** |
||
99 | * @return Collection|Performance[] |
||
100 | */ |
||
101 | public function getPerformances(): Collection |
||
105 | |||
106 | public function setPerformances(iterable $performances) |
||
112 | |||
113 | public function addPerformance(Performance $performance): self |
||
122 | |||
123 | public function removePerformance(Performance $performance): self |
||
132 | |||
133 | /** |
||
134 | * @JMS\VirtualProperty() |
||
135 | * @JMS\SerializedName("name") |
||
136 | */ |
||
137 | 3 | public function __toString() |
|
147 | } |
||
148 |