|
@@ -7,8 +7,6 @@ namespace App\Entity\Booking;
|
|
|
use ApiPlatform\Metadata\ApiResource;
|
|
use ApiPlatform\Metadata\ApiResource;
|
|
|
use App\Entity\Access\Access;
|
|
use App\Entity\Access\Access;
|
|
|
// use DH\Auditor\Provider\Doctrine\Auditing\Annotation\Auditable;
|
|
// use DH\Auditor\Provider\Doctrine\Auditing\Annotation\Auditable;
|
|
|
-use App\Entity\Billing\FamilyQuotientBandDetail;
|
|
|
|
|
-use App\Entity\Billing\ResidenceArea;
|
|
|
|
|
use App\Entity\Core\Tagg;
|
|
use App\Entity\Core\Tagg;
|
|
|
use App\Entity\Organization\Organization;
|
|
use App\Entity\Organization\Organization;
|
|
|
use App\Entity\Product\Equipment;
|
|
use App\Entity\Product\Equipment;
|
|
@@ -119,12 +117,12 @@ class PersonHoliday extends AbstractBooking
|
|
|
return $this;
|
|
return $this;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- function getOrganizer(): Collection
|
|
|
|
|
|
|
+ public function getOrganizer(): Collection
|
|
|
{
|
|
{
|
|
|
return $this->organizer;
|
|
return $this->organizer;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- function addOrganizer(Access $organizer): self
|
|
|
|
|
|
|
+ public function addOrganizer(Access $organizer): self
|
|
|
{
|
|
{
|
|
|
if (!$this->organizer->contains($organizer)) {
|
|
if (!$this->organizer->contains($organizer)) {
|
|
|
$this->organizer[] = $organizer;
|
|
$this->organizer[] = $organizer;
|
|
@@ -134,7 +132,7 @@ class PersonHoliday extends AbstractBooking
|
|
|
return $this;
|
|
return $this;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- function removeOrganizer(Access $organizer): self
|
|
|
|
|
|
|
+ public function removeOrganizer(Access $organizer): self
|
|
|
{
|
|
{
|
|
|
if ($this->organizer->removeElement($organizer)) {
|
|
if ($this->organizer->removeElement($organizer)) {
|
|
|
$organizer->removePracticalCourse($this);
|
|
$organizer->removePracticalCourse($this);
|
|
@@ -143,36 +141,36 @@ class PersonHoliday extends AbstractBooking
|
|
|
return $this;
|
|
return $this;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- function getEquipments(): Collection
|
|
|
|
|
|
|
+ public function getEquipments(): Collection
|
|
|
{
|
|
{
|
|
|
return $this->equipments;
|
|
return $this->equipments;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- function addEquipment(Equipment $equipment): self
|
|
|
|
|
|
|
+ public function addEquipment(Equipment $equipment): self
|
|
|
{
|
|
{
|
|
|
if (!$this->equipments->contains($equipment)) {
|
|
if (!$this->equipments->contains($equipment)) {
|
|
|
$this->equipments[] = $equipment;
|
|
$this->equipments[] = $equipment;
|
|
|
-// $equipment->addXXXX($this); // TODO: compléter
|
|
|
|
|
|
|
+ // $equipment->addXXXX($this); // TODO: compléter
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
return $this;
|
|
return $this;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- function removeEquipment(Equipment $equipment): self
|
|
|
|
|
|
|
+ public function removeEquipment(Equipment $equipment): self
|
|
|
{
|
|
{
|
|
|
if ($this->equipments->removeElement($equipment)) {
|
|
if ($this->equipments->removeElement($equipment)) {
|
|
|
-// $equipment->removeXXXX($this); // TODO: compléter
|
|
|
|
|
|
|
+ // $equipment->removeXXXX($this); // TODO: compléter
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
return $this;
|
|
return $this;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- function getTags(): Collection
|
|
|
|
|
|
|
+ public function getTags(): Collection
|
|
|
{
|
|
{
|
|
|
return $this->tags;
|
|
return $this->tags;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- function addTag(Tagg $tag): self
|
|
|
|
|
|
|
+ public function addTag(Tagg $tag): self
|
|
|
{
|
|
{
|
|
|
if (!$this->tags->contains($tag)) {
|
|
if (!$this->tags->contains($tag)) {
|
|
|
$this->tags[] = $tag;
|
|
$this->tags[] = $tag;
|
|
@@ -182,7 +180,7 @@ class PersonHoliday extends AbstractBooking
|
|
|
return $this;
|
|
return $this;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- function removeTag(Tagg $tag): self
|
|
|
|
|
|
|
+ public function removeTag(Tagg $tag): self
|
|
|
{
|
|
{
|
|
|
if ($this->tags->removeElement($tag)) {
|
|
if ($this->tags->removeElement($tag)) {
|
|
|
$tag->removeBooking($this);
|
|
$tag->removeBooking($this);
|
|
@@ -190,5 +188,4 @@ class PersonHoliday extends AbstractBooking
|
|
|
|
|
|
|
|
return $this;
|
|
return $this;
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
}
|
|
}
|