Browse Source

Merge remote-tracking branch 'origin/V8-6941_complete_entities_lint' into feature/V8-6941-complter-les-entits-avec-les-pro

Olivier Massot 9 months ago
parent
commit
9e993e8d2f
73 changed files with 537 additions and 451 deletions
  1. 34 33
      src/Entity/Access/Access.php
  2. 3 2
      src/Entity/Access/AccessCommunication.php
  3. 3 2
      src/Entity/Access/AccessNetworkSetting.php
  4. 3 2
      src/Entity/Access/AccessSocial.php
  5. 3 3
      src/Entity/AccessWish/AccessFamilyWish.php
  6. 15 10
      src/Entity/AccessWish/AccessWish.php
  7. 6 4
      src/Entity/AccessWish/DocumentWish.php
  8. 9 7
      src/Entity/AccessWish/EducationStudentWish.php
  9. 84 60
      src/Entity/Awin/Product.php
  10. 25 17
      src/Entity/Billing/AbstractBillAccounting.php
  11. 3 2
      src/Entity/Billing/AccessBilling.php
  12. 1 0
      src/Entity/Billing/AdvancePayment.php
  13. 3 2
      src/Entity/Billing/BergerLevrault.php
  14. 1 0
      src/Entity/Billing/Bill.php
  15. 1 0
      src/Entity/Billing/BillAccounting.php
  16. 1 0
      src/Entity/Billing/BillCredit.php
  17. 6 4
      src/Entity/Billing/BillPayment.php
  18. 6 5
      src/Entity/Billing/BillScheduleDate.php
  19. 7 5
      src/Entity/Billing/BillingExportSetting.php
  20. 3 2
      src/Entity/Billing/BillingSetting.php
  21. 4 2
      src/Entity/Billing/BillingSettingRent.php
  22. 3 2
      src/Entity/Billing/Ciril.php
  23. 3 2
      src/Entity/Billing/Jvs.php
  24. 3 5
      src/Entity/Billing/PayboxPaymentReturn.php
  25. 3 2
      src/Entity/Billing/Pes.php
  26. 3 2
      src/Entity/Billing/PesSetting.php
  27. 6 5
      src/Entity/Billing/SddBank.php
  28. 9 7
      src/Entity/Billing/SddRegie.php
  29. 10 10
      src/Entity/Booking/AbstractBooking.php
  30. 6 4
      src/Entity/Booking/CalendarSynchro.php
  31. 3 3
      src/Entity/Booking/Course.php
  32. 3 3
      src/Entity/Booking/EducationalProject.php
  33. 3 3
      src/Entity/Booking/Event.php
  34. 3 2
      src/Entity/Booking/PersonHoliday.php
  35. 6 5
      src/Entity/Core/AbstractControl.php
  36. 1 1
      src/Entity/Core/AbstractRepair.php
  37. 3 3
      src/Entity/Core/AddressPostal.php
  38. 3 2
      src/Entity/Core/City.php
  39. 3 2
      src/Entity/Core/Department.php
  40. 1 0
      src/Entity/Core/File.php
  41. 22 18
      src/Entity/Core/LoginLog.php
  42. 3 2
      src/Entity/Core/Region.php
  43. 19 20
      src/Entity/Core/Tagg.php
  44. 3 3
      src/Entity/Education/Cycle.php
  45. 3 3
      src/Entity/Education/Education.php
  46. 3 3
      src/Entity/Education/EducationComplement.php
  47. 18 18
      src/Entity/Education/EducationCurriculum.php
  48. 3 2
      src/Entity/Education/EducationStudent.php
  49. 3 3
      src/Entity/Message/AbstractMessage.php
  50. 0 1
      src/Entity/Message/Email.php
  51. 0 1
      src/Entity/Message/Mail.php
  52. 3 2
      src/Entity/Network/Network.php
  53. 3 2
      src/Entity/Organization/Activity.php
  54. 3 2
      src/Entity/Organization/CotisationByYear.php
  55. 3 2
      src/Entity/Organization/CotisationStaffInfos.php
  56. 3 2
      src/Entity/Organization/OnlineRegistrationDocument.php
  57. 6 5
      src/Entity/Organization/OnlineRegistrationSettings.php
  58. 33 30
      src/Entity/Organization/Organization.php
  59. 3 0
      src/Entity/Person/AllowedIp.php
  60. 1 0
      src/Entity/Person/Medical.php
  61. 1 0
      src/Entity/Person/Person.php
  62. 1 1
      src/Entity/Place/AbstractPlace.php
  63. 3 3
      src/Entity/Product/AbstractProduct.php
  64. 12 12
      src/Entity/Product/Equipment.php
  65. 6 5
      src/Entity/Product/Intangible.php
  66. 6 4
      src/Entity/Product/IntangibleDiscountDetail.php
  67. 6 5
      src/Entity/Product/IntangiblePriceAndDiscount.php
  68. 2 0
      src/Entity/Public/PublicEvent.php
  69. 1 0
      src/Service/Doctrine/SchemaValidation/DiffTypeEnum.php
  70. 31 39
      src/Service/Doctrine/SchemaValidation/SchemaValidationService.php
  71. 12 21
      src/Service/Utils/EntityUtils.php
  72. 1 4
      src/Service/Utils/FileUtils.php
  73. 24 13
      tests/Unit/Service/Utils/EntityUtilsTest.php

+ 34 - 33
src/Entity/Access/Access.php

@@ -18,8 +18,10 @@ use App\Entity\Billing\Bill;
 use App\Entity\Billing\BillCredit;
 use App\Entity\Billing\BillLine;
 use App\Entity\Billing\EducationalProjectPayer;
+use App\Entity\Booking\AbstractBooking;
 use App\Entity\Booking\Attendance;
 use App\Entity\Booking\AttendanceBooking;
+use App\Entity\Booking\CalendarSynchro;
 use App\Entity\Booking\Course;
 use App\Entity\Booking\EducationalProject;
 use App\Entity\Booking\Event;
@@ -27,6 +29,7 @@ use App\Entity\Booking\EventUser;
 use App\Entity\Booking\ExamenConvocation;
 use App\Entity\Booking\PersonHoliday;
 use App\Entity\Booking\WorkByUser;
+use App\Entity\Core\AbstractControl;
 use App\Entity\Core\Notification;
 use App\Entity\Core\NotificationUser;
 use App\Entity\Core\Tagg;
@@ -52,12 +55,6 @@ use App\Entity\Product\Equipment;
 use App\Entity\Product\EquipmentLoan;
 use App\Entity\Product\EquipmentRepair;
 use App\Entity\Reward\AccessReward;
-use App\Entity\Access\AccessCommunication;
-use App\Entity\Access\AccessNetworkSetting;
-use App\Entity\Access\AccessSocial;
-use App\Entity\Booking\AbstractBooking;
-use App\Entity\Booking\CalendarSynchro;
-use App\Entity\Core\AbstractControl;
 use App\Entity\Token\Token;
 use App\Filter\ApiPlatform\Person\FullNameFilter;
 use App\Filter\ApiPlatform\Utils\InFilter;
@@ -2181,12 +2178,12 @@ class Access implements UserInterface, PasswordAuthenticatedUserInterface
         return $this;
     }
 
-    function getBookingOrganizers(): Collection
+    public function getBookingOrganizers(): Collection
     {
         return $this->bookingOrganizers;
     }
 
-    function addBookingOrganizer(AbstractBooking $bookingOrganizer): self
+    public function addBookingOrganizer(AbstractBooking $bookingOrganizer): self
     {
         if (!$this->bookingOrganizers->contains($bookingOrganizer)) {
             $this->bookingOrganizers[] = $bookingOrganizer;
@@ -2196,7 +2193,7 @@ class Access implements UserInterface, PasswordAuthenticatedUserInterface
         return $this;
     }
 
-    function removeBookingOrganizer(AbstractBooking $bookingOrganizer): self
+    public function removeBookingOrganizer(AbstractBooking $bookingOrganizer): self
     {
         if ($this->bookingOrganizers->removeElement($bookingOrganizer)) {
             $bookingOrganizer->removeOrganizer($this);
@@ -2205,12 +2202,12 @@ class Access implements UserInterface, PasswordAuthenticatedUserInterface
         return $this;
     }
 
-    function getAdvancePayments(): Collection
+    public function getAdvancePayments(): Collection
     {
         return $this->advancePayments;
     }
 
-    function addAdvancePayment(AdvancePayment $advancePayment): self
+    public function addAdvancePayment(AdvancePayment $advancePayment): self
     {
         if (!$this->advancePayments->contains($advancePayment)) {
             $this->advancePayments[] = $advancePayment;
@@ -2220,7 +2217,7 @@ class Access implements UserInterface, PasswordAuthenticatedUserInterface
         return $this;
     }
 
-    function removeAdvancePayment(AdvancePayment $advancePayment): self
+    public function removeAdvancePayment(AdvancePayment $advancePayment): self
     {
         if ($this->advancePayments->removeElement($advancePayment)) {
             $advancePayment->setAccess(null);
@@ -2229,12 +2226,12 @@ class Access implements UserInterface, PasswordAuthenticatedUserInterface
         return $this;
     }
 
-    function getMessages(): Collection
+    public function getMessages(): Collection
     {
         return $this->messages;
     }
 
-    function addMessage(mixed $message): self
+    public function addMessage(mixed $message): self
     {
         if (!$this->messages->contains($message)) {
             $this->messages[] = $message;
@@ -2244,7 +2241,7 @@ class Access implements UserInterface, PasswordAuthenticatedUserInterface
         return $this;
     }
 
-    function removeMessage(mixed $message): self
+    public function removeMessage(mixed $message): self
     {
         if ($this->messages->removeElement($message)) {
             $message->setAuthor(null);
@@ -2253,12 +2250,12 @@ class Access implements UserInterface, PasswordAuthenticatedUserInterface
         return $this;
     }
 
-    function getEquipmentManagerControls(): Collection
+    public function getEquipmentManagerControls(): Collection
     {
         return $this->equipmentManagerControls;
     }
 
-    function addEquipmentManagerControl(Equipment $equipmentManagerControl): self
+    public function addEquipmentManagerControl(Equipment $equipmentManagerControl): self
     {
         if (!$this->equipmentManagerControls->contains($equipmentManagerControl)) {
             $this->equipmentManagerControls[] = $equipmentManagerControl;
@@ -2268,7 +2265,7 @@ class Access implements UserInterface, PasswordAuthenticatedUserInterface
         return $this;
     }
 
-    function removeEquipmentManagerControl(Equipment $equipmentManagerControl): self
+    public function removeEquipmentManagerControl(Equipment $equipmentManagerControl): self
     {
         if ($this->equipmentManagerControls->removeElement($equipmentManagerControl)) {
             $equipmentManagerControl->setManagerControl(null);
@@ -2277,12 +2274,12 @@ class Access implements UserInterface, PasswordAuthenticatedUserInterface
         return $this;
     }
 
-    function getAccompanistControl(): Collection
+    public function getAccompanistControl(): Collection
     {
         return $this->accompanistControl;
     }
 
-    function addAccompanistControl(AbstractControl $accompanistControl): self
+    public function addAccompanistControl(AbstractControl $accompanistControl): self
     {
         if (!$this->accompanistControl->contains($accompanistControl)) {
             $this->accompanistControl[] = $accompanistControl;
@@ -2292,7 +2289,7 @@ class Access implements UserInterface, PasswordAuthenticatedUserInterface
         return $this;
     }
 
-    function removeAccompanistControl(AbstractControl $accompanistControl): self
+    public function removeAccompanistControl(AbstractControl $accompanistControl): self
     {
         if ($this->accompanistControl->removeElement($accompanistControl)) {
 //            $accompanistControl->setAccompanist(null);  // TODO: actuellement, pas nullable: conserver?
@@ -2301,12 +2298,12 @@ class Access implements UserInterface, PasswordAuthenticatedUserInterface
         return $this;
     }
 
-    function getRewards(): Collection
+    public function getRewards(): Collection
     {
         return $this->rewards;
     }
 
-    function addReward(AccessReward $reward): self
+    public function addReward(AccessReward $reward): self
     {
         if (!$this->rewards->contains($reward)) {
             $this->rewards[] = $reward;
@@ -2316,7 +2313,7 @@ class Access implements UserInterface, PasswordAuthenticatedUserInterface
         return $this;
     }
 
-    function removeReward(AccessReward $reward): self
+    public function removeReward(AccessReward $reward): self
     {
         if ($this->rewards->removeElement($reward)) {
             $reward->setAccess(null);
@@ -2325,51 +2322,55 @@ class Access implements UserInterface, PasswordAuthenticatedUserInterface
         return $this;
     }
 
-    function getAccessSocial(): AccessSocial
+    public function getAccessSocial(): AccessSocial
     {
         return $this->accessSocial;
     }
 
-    function setAccessSocial(AccessSocial $accessSocial): self
+    public function setAccessSocial(AccessSocial $accessSocial): self
     {
         $this->accessSocial = $accessSocial;
+
         return $this;
     }
 
-    function getAccessNetworkSetting(): AccessNetworkSetting
+    public function getAccessNetworkSetting(): AccessNetworkSetting
     {
         return $this->accessNetworkSetting;
     }
 
-    function setAccessNetworkSetting(AccessNetworkSetting $accessNetworkSetting): self
+    public function setAccessNetworkSetting(AccessNetworkSetting $accessNetworkSetting): self
     {
         $this->accessNetworkSetting = $accessNetworkSetting;
+
         return $this;
     }
 
-    function getAccessCommunication(): AccessCommunication
+    public function getAccessCommunication(): AccessCommunication
     {
         return $this->accessCommunication;
     }
 
-    function setAccessCommunication(AccessCommunication $accessCommunication): self
+    public function setAccessCommunication(AccessCommunication $accessCommunication): self
     {
         $this->accessCommunication = $accessCommunication;
+
         return $this;
     }
 
-    function getCalendarSynchro(): CalendarSynchro
+    public function getCalendarSynchro(): CalendarSynchro
     {
         return $this->calendarSynchro;
     }
 
-    function setCalendarSynchro(CalendarSynchro $calendarSynchro): self
+    public function setCalendarSynchro(CalendarSynchro $calendarSynchro): self
     {
         $this->calendarSynchro = $calendarSynchro;
+
         return $this;
     }
 
-    function getTokens(): Collection
+    public function getTokens(): Collection
     {
         return $this->tokens;
     }

+ 3 - 2
src/Entity/Access/AccessCommunication.php

@@ -27,14 +27,15 @@ class AccessCommunication
         return $this->id;
     }
 
-    function getAccess(): Access
+    public function getAccess(): Access
     {
         return $this->access;
     }
 
-    function setAccess(Access $access): self
+    public function setAccess(Access $access): self
     {
         $this->access = $access;
+
         return $this;
     }
 }

+ 3 - 2
src/Entity/Access/AccessNetworkSetting.php

@@ -27,14 +27,15 @@ class AccessNetworkSetting
         return $this->id;
     }
 
-    function getAccess(): Access
+    public function getAccess(): Access
     {
         return $this->access;
     }
 
-    function setAccess(Access $access): self
+    public function setAccess(Access $access): self
     {
         $this->access = $access;
+
         return $this;
     }
 }

+ 3 - 2
src/Entity/Access/AccessSocial.php

@@ -27,14 +27,15 @@ class AccessSocial
         return $this->id;
     }
 
-    function getAccess(): Access
+    public function getAccess(): Access
     {
         return $this->access;
     }
 
-    function setAccess(Access $access): self
+    public function setAccess(Access $access): self
     {
         $this->access = $access;
+
         return $this;
     }
 }

+ 3 - 3
src/Entity/AccessWish/AccessFamilyWish.php

@@ -110,12 +110,12 @@ class AccessFamilyWish
         $this->closeRegistration = $closeRegistration;
     }
 
-    function getAccessWishesGuardians(): Collection
+    public function getAccessWishesGuardians(): Collection
     {
         return $this->accessWishesGuardians;
     }
 
-    function addAccessWishesGuardian(AccessWish $accessWishesGuardian): self
+    public function addAccessWishesGuardian(AccessWish $accessWishesGuardian): self
     {
         if (!$this->accessWishesGuardians->contains($accessWishesGuardian)) {
             $this->accessWishesGuardians[] = $accessWishesGuardian;
@@ -124,7 +124,7 @@ class AccessFamilyWish
         return $this;
     }
 
-    function removeAccessWishesGuardian(AccessWish $accessWishesGuardian): self
+    public function removeAccessWishesGuardian(AccessWish $accessWishesGuardian): self
     {
         $this->accessWishesGuardians->removeElement($accessWishesGuardian);
 

+ 15 - 10
src/Entity/AccessWish/AccessWish.php

@@ -319,58 +319,63 @@ class AccessWish
         $this->validationState = $validationState;
     }
 
-    function getBillSchedule(): BillSchedule
+    public function getBillSchedule(): BillSchedule
     {
         return $this->billSchedule;
     }
 
-    function setBillSchedule(BillSchedule $billSchedule): self
+    public function setBillSchedule(BillSchedule $billSchedule): self
     {
         $this->billSchedule = $billSchedule;
+
         return $this;
     }
 
-    function getDocumentRib(): DocumentWish
+    public function getDocumentRib(): DocumentWish
     {
         return $this->documentRib;
     }
 
-    function setDocumentRib(DocumentWish $documentRib): self
+    public function setDocumentRib(DocumentWish $documentRib): self
     {
         $this->documentRib = $documentRib;
+
         return $this;
     }
 
-    function getDocumentSepa(): DocumentWish
+    public function getDocumentSepa(): DocumentWish
     {
         return $this->documentSepa;
     }
 
-    function setDocumentSepa(DocumentWish $documentSepa): self
+    public function setDocumentSepa(DocumentWish $documentSepa): self
     {
         $this->documentSepa = $documentSepa;
+
         return $this;
     }
 
-    function getWishPack(): EducationCurriculumPack
+    public function getWishPack(): EducationCurriculumPack
     {
         return $this->wishPack;
     }
 
-    function setWishPack(EducationCurriculumPack $wishPack): self
+    public function setWishPack(EducationCurriculumPack $wishPack): self
     {
         $this->wishPack = $wishPack;
+
         return $this;
     }
 
-    function getFavoritePlace(): Place
+    public function getFavoritePlace(): Place
     {
         return $this->favoritePlace;
     }
 
-    function setFavoritePlace(Place $favoritePlace): self
+    public function setFavoritePlace(Place $favoritePlace): self
     {
         $this->favoritePlace = $favoritePlace;
+
         return $this;
     }
 }

+ 6 - 4
src/Entity/AccessWish/DocumentWish.php

@@ -104,25 +104,27 @@ class DocumentWish
         return $this;
     }
 
-    function getAccessWishRib(): AccessWish
+    public function getAccessWishRib(): AccessWish
     {
         return $this->accessWishRib;
     }
 
-    function setAccessWishRib(AccessWish $accessWishRib): self
+    public function setAccessWishRib(AccessWish $accessWishRib): self
     {
         $this->accessWishRib = $accessWishRib;
+
         return $this;
     }
 
-    function getAccessWishSepa(): AccessWish
+    public function getAccessWishSepa(): AccessWish
     {
         return $this->accessWishSepa;
     }
 
-    function setAccessWishSepa(AccessWish $accessWishSepa): self
+    public function setAccessWishSepa(AccessWish $accessWishSepa): self
     {
         $this->accessWishSepa = $accessWishSepa;
+
         return $this;
     }
 }

+ 9 - 7
src/Entity/AccessWish/EducationStudentWish.php

@@ -171,12 +171,12 @@ class EducationStudentWish
         return $this;
     }
 
-    function getTeachers(): Collection
+    public function getTeachers(): Collection
     {
         return $this->teachers;
     }
 
-    function addTeacher(Access $teacher): self
+    public function addTeacher(Access $teacher): self
     {
         if (!$this->teachers->contains($teacher)) {
             $this->teachers[] = $teacher;
@@ -185,32 +185,34 @@ class EducationStudentWish
         return $this;
     }
 
-    function removeTeacher(Access $teacher): self
+    public function removeTeacher(Access $teacher): self
     {
         $this->teachers->removeElement($teacher);
 
         return $this;
     }
 
-    function getSpeciality(): EquipmentList
+    public function getSpeciality(): EquipmentList
     {
         return $this->speciality;
     }
 
-    function setSpeciality(EquipmentList $speciality): self
+    public function setSpeciality(EquipmentList $speciality): self
     {
         $this->speciality = $speciality;
+
         return $this;
     }
 
-    function getCourse(): Course
+    public function getCourse(): Course
     {
         return $this->course;
     }
 
-    function setCourse(Course $course): self
+    public function setCourse(Course $course): self
     {
         $this->course = $course;
+
         return $this;
     }
 }

+ 84 - 60
src/Entity/Awin/Product.php

@@ -5,9 +5,6 @@ declare(strict_types=1);
 namespace App\Entity\Awin;
 
 use ApiPlatform\Metadata\ApiResource;
-use DateTimeInterface;
-use Doctrine\Common\Collections\ArrayCollection;
-use Doctrine\Common\Collections\Collection;
 use Doctrine\ORM\Mapping as ORM;
 
 #[ApiResource(operations: [])]
@@ -99,319 +96,346 @@ class Product
     protected string $uuid;
 
     #[ORM\Column(type: 'date', options: ['nullable' => true])]
-    protected ?DateTimeInterface $createDate;
+    protected ?\DateTimeInterface $createDate;
 
     #[ORM\Column(type: 'date', options: ['nullable' => true])]
-    protected ?DateTimeInterface $updateDate;
+    protected ?\DateTimeInterface $updateDate;
 
-    function getId(): int
+    public function getId(): int
     {
         return $this->id;
     }
 
-    function setId(int $id): self
+    public function setId(int $id): self
     {
         $this->id = $id;
+
         return $this;
     }
 
-    function getSlug(): mixed
+    public function getSlug(): mixed
     {
         return $this->slug;
     }
 
-    function setSlug(mixed $slug): self
+    public function setSlug(mixed $slug): self
     {
         $this->slug = $slug;
+
         return $this;
     }
 
-    function getName(): mixed
+    public function getName(): mixed
     {
         return $this->name;
     }
 
-    function setName(mixed $name): self
+    public function setName(mixed $name): self
     {
         $this->name = $name;
+
         return $this;
     }
 
-    function getDescription(): string
+    public function getDescription(): string
     {
         return $this->description;
     }
 
-    function setDescription(string $description): self
+    public function setDescription(string $description): self
     {
         $this->description = $description;
+
         return $this;
     }
 
-    function getCategoryCode(): mixed
+    public function getCategoryCode(): mixed
     {
         return $this->categoryCode;
     }
 
-    function setCategoryCode(mixed $categoryCode): self
+    public function setCategoryCode(mixed $categoryCode): self
     {
         $this->categoryCode = $categoryCode;
+
         return $this;
     }
 
-    function getSubCategory(): mixed
+    public function getSubCategory(): mixed
     {
         return $this->subCategory;
     }
 
-    function setSubCategory(mixed $subCategory): self
+    public function setSubCategory(mixed $subCategory): self
     {
         $this->subCategory = $subCategory;
+
         return $this;
     }
 
     /**
      * @return string[]
      */
-    function getCategories(): array
+    public function getCategories(): array
     {
         return $this->categories;
     }
 
     /**
      * @param string[] $categories
-     * @return self
      */
-    function setCategories(array $categories): self
+    public function setCategories(array $categories): self
     {
         $this->categories = $categories;
+
         return $this;
     }
 
-    function getDatetimeStart(): mixed
+    public function getDatetimeStart(): mixed
     {
         return $this->datetimeStart;
     }
 
-    function setDatetimeStart(mixed $datetimeStart): self
+    public function setDatetimeStart(mixed $datetimeStart): self
     {
         $this->datetimeStart = $datetimeStart;
+
         return $this;
     }
 
-    function getDatetimeEnd(): mixed
+    public function getDatetimeEnd(): mixed
     {
         return $this->datetimeEnd;
     }
 
-    function setDatetimeEnd(mixed $datetimeEnd): self
+    public function setDatetimeEnd(mixed $datetimeEnd): self
     {
         $this->datetimeEnd = $datetimeEnd;
+
         return $this;
     }
 
     /**
      * @return string[]
      */
-    function getMeetingSchedule(): array
+    public function getMeetingSchedule(): array
     {
         return $this->meetingSchedule;
     }
 
     /**
      * @param array<string> $meetingSchedule
+     *
      * @return $this
      */
-    function setMeetingSchedule(array $meetingSchedule): self
+    public function setMeetingSchedule(array $meetingSchedule): self
     {
         $this->meetingSchedule = $meetingSchedule;
+
         return $this;
     }
 
-    function getPlaceCode(): mixed
+    public function getPlaceCode(): mixed
     {
         return $this->placeCode;
     }
 
-    function setPlaceCode(mixed $placeCode): self
+    public function setPlaceCode(mixed $placeCode): self
     {
         $this->placeCode = $placeCode;
+
         return $this;
     }
 
-    function getPlace(): mixed
+    public function getPlace(): mixed
     {
         return $this->place;
     }
 
-    function setPlace(mixed $place): self
+    public function setPlace(mixed $place): self
     {
         $this->place = $place;
+
         return $this;
     }
 
-    function getStreetAddress(): mixed
+    public function getStreetAddress(): mixed
     {
         return $this->streetAddress;
     }
 
-    function setStreetAddress(mixed $streetAddress): self
+    public function setStreetAddress(mixed $streetAddress): self
     {
         $this->streetAddress = $streetAddress;
+
         return $this;
     }
 
-    function getPostalCode(): mixed
+    public function getPostalCode(): mixed
     {
         return $this->postalCode;
     }
 
-    function setPostalCode(mixed $postalCode): self
+    public function setPostalCode(mixed $postalCode): self
     {
         $this->postalCode = $postalCode;
+
         return $this;
     }
 
-    function getCity(): mixed
+    public function getCity(): mixed
     {
         return $this->city;
     }
 
-    function setCity(mixed $city): self
+    public function setCity(mixed $city): self
     {
         $this->city = $city;
+
         return $this;
     }
 
-    function getCountry(): mixed
+    public function getCountry(): mixed
     {
         return $this->country;
     }
 
-    function setCountry(mixed $country): self
+    public function setCountry(mixed $country): self
     {
         $this->country = $country;
+
         return $this;
     }
 
-    function getLatitude(): mixed
+    public function getLatitude(): mixed
     {
         return $this->latitude;
     }
 
-    function setLatitude(mixed $latitude): self
+    public function setLatitude(mixed $latitude): self
     {
         $this->latitude = $latitude;
+
         return $this;
     }
 
-    function getLongitude(): mixed
+    public function getLongitude(): mixed
     {
         return $this->longitude;
     }
 
-    function setLongitude(mixed $longitude): self
+    public function setLongitude(mixed $longitude): self
     {
         $this->longitude = $longitude;
+
         return $this;
     }
 
-    function getMediumimage(): mixed
+    public function getMediumimage(): mixed
     {
         return $this->mediumimage;
     }
 
-    function setMediumimage(mixed $mediumimage): self
+    public function setMediumimage(mixed $mediumimage): self
     {
         $this->mediumimage = $mediumimage;
+
         return $this;
     }
 
-    function getLargeimage(): mixed
+    public function getLargeimage(): mixed
     {
         return $this->largeimage;
     }
 
-    function setLargeimage(mixed $largeimage): self
+    public function setLargeimage(mixed $largeimage): self
     {
         $this->largeimage = $largeimage;
+
         return $this;
     }
 
-    function getDeepLink(): string
+    public function getDeepLink(): string
     {
         return $this->deepLink;
     }
 
-    function setDeepLink(string $deepLink): self
+    public function setDeepLink(string $deepLink): self
     {
         $this->deepLink = $deepLink;
+
         return $this;
     }
 
-    function getPriceMini(): mixed
+    public function getPriceMini(): mixed
     {
         return $this->priceMini;
     }
 
-    function setPriceMini(mixed $priceMini): self
+    public function setPriceMini(mixed $priceMini): self
     {
         $this->priceMini = $priceMini;
+
         return $this;
     }
 
-    function getPriceMaxi(): mixed
+    public function getPriceMaxi(): mixed
     {
         return $this->priceMaxi;
     }
 
-    function setPriceMaxi(mixed $priceMaxi): self
+    public function setPriceMaxi(mixed $priceMaxi): self
     {
         $this->priceMaxi = $priceMaxi;
+
         return $this;
     }
 
-    function getArtists(): string
+    public function getArtists(): string
     {
         return $this->artists;
     }
 
-    function setArtists(string $artists): self
+    public function setArtists(string $artists): self
     {
         $this->artists = $artists;
+
         return $this;
     }
 
-    function getUuid(): string
+    public function getUuid(): string
     {
         return $this->uuid;
     }
 
-    function setUuid(string $uuid): self
+    public function setUuid(string $uuid): self
     {
         $this->uuid = $uuid;
+
         return $this;
     }
 
-    function getCreateDate(): DateTimeInterface
+    public function getCreateDate(): \DateTimeInterface
     {
         return $this->createDate;
     }
 
-    function setCreateDate(DateTimeInterface $createDate): self
+    public function setCreateDate(\DateTimeInterface $createDate): self
     {
         $this->createDate = $createDate;
+
         return $this;
     }
 
-    function getUpdateDate(): DateTimeInterface
+    public function getUpdateDate(): \DateTimeInterface
     {
         return $this->updateDate;
     }
 
-    function setUpdateDate(DateTimeInterface $updateDate): self
+    public function setUpdateDate(\DateTimeInterface $updateDate): self
     {
         $this->updateDate = $updateDate;
+
         return $this;
     }
 }

+ 25 - 17
src/Entity/Billing/AbstractBillAccounting.php

@@ -13,7 +13,7 @@ use Doctrine\Common\Collections\Collection;
 use Doctrine\ORM\Mapping as ORM;
 
 /**
- * Facture ou avoir
+ * Facture ou avoir.
  *
  * @see Bill, BillCredit, AdvancePayment
  *
@@ -346,91 +346,99 @@ abstract class AbstractBillAccounting
         return $this;
     }
 
-    function getAccess(): Access
+    public function getAccess(): Access
     {
         return $this->access;
     }
 
-    function setAccess(?Access $access): self
+    public function setAccess(?Access $access): self
     {
         $this->access = $access;
+
         return $this;
     }
 
-    function getAccessDetail(): BillAccessDetail
+    public function getAccessDetail(): BillAccessDetail
     {
         return $this->accessDetail;
     }
 
-    function setAccessDetail(BillAccessDetail $accessDetail): self
+    public function setAccessDetail(BillAccessDetail $accessDetail): self
     {
         $this->accessDetail = $accessDetail;
+
         return $this;
     }
 
-    function getBillPeriod(): BillPeriod
+    public function getBillPeriod(): BillPeriod
     {
         return $this->billPeriod;
     }
 
-    function setBillPeriod(BillPeriod $billPeriod): self
+    public function setBillPeriod(BillPeriod $billPeriod): self
     {
         $this->billPeriod = $billPeriod;
+
         return $this;
     }
 
-    function getTotalDetail(): BillTotalDetail
+    public function getTotalDetail(): BillTotalDetail
     {
         return $this->totalDetail;
     }
 
-    function setTotalDetail(BillTotalDetail $totalDetail): self
+    public function setTotalDetail(BillTotalDetail $totalDetail): self
     {
         $this->totalDetail = $totalDetail;
+
         return $this;
     }
 
-    function getFile(): File
+    public function getFile(): File
     {
         return $this->file;
     }
 
-    function setFile(File $file): self
+    public function setFile(File $file): self
     {
         $this->file = $file;
+
         return $this;
     }
 
-    function getOdyssee(): Odyssee
+    public function getOdyssee(): Odyssee
     {
         return $this->odyssee;
     }
 
-    function setOdyssee(Odyssee $odyssee): self
+    public function setOdyssee(Odyssee $odyssee): self
     {
         $this->odyssee = $odyssee;
+
         return $this;
     }
 
-    function getAfi(): Afi
+    public function getAfi(): Afi
     {
         return $this->afi;
     }
 
-    function setAfi(Afi $afi): self
+    public function setAfi(Afi $afi): self
     {
         $this->afi = $afi;
+
         return $this;
     }
 
-    function getCirilCivil(): CirilCivil
+    public function getCirilCivil(): CirilCivil
     {
         return $this->cirilCivil;
     }
 
-    function setCirilCivil(CirilCivil $cirilCivil): self
+    public function setCirilCivil(CirilCivil $cirilCivil): self
     {
         $this->cirilCivil = $cirilCivil;
+
         return $this;
     }
 }

+ 3 - 2
src/Entity/Billing/AccessBilling.php

@@ -187,14 +187,15 @@ class AccessBilling
         return $this;
     }
 
-    function getBillSchedule(): BillSchedule
+    public function getBillSchedule(): BillSchedule
     {
         return $this->billSchedule;
     }
 
-    function setBillSchedule(BillSchedule $billSchedule): self
+    public function setBillSchedule(BillSchedule $billSchedule): self
     {
         $this->billSchedule = $billSchedule;
+
         return $this;
     }
 }

+ 1 - 0
src/Entity/Billing/AdvancePayment.php

@@ -1,4 +1,5 @@
 <?php
+
 declare(strict_types=1);
 
 namespace App\Entity\Billing;

+ 3 - 2
src/Entity/Billing/BergerLevrault.php

@@ -68,14 +68,15 @@ class BergerLevrault
         return $this;
     }
 
-    function getFile(): File
+    public function getFile(): File
     {
         return $this->file;
     }
 
-    function setFile(File $file): self
+    public function setFile(File $file): self
     {
         $this->file = $file;
+
         return $this;
     }
 }

+ 1 - 0
src/Entity/Billing/Bill.php

@@ -1,4 +1,5 @@
 <?php
+
 declare(strict_types=1);
 
 namespace App\Entity\Billing;

+ 1 - 0
src/Entity/Billing/BillAccounting.php

@@ -1,4 +1,5 @@
 <?php
+
 declare(strict_types=1);
 
 namespace App\Entity\Billing;

+ 1 - 0
src/Entity/Billing/BillCredit.php

@@ -1,4 +1,5 @@
 <?php
+
 declare(strict_types=1);
 
 namespace App\Entity\Billing;

+ 6 - 4
src/Entity/Billing/BillPayment.php

@@ -153,25 +153,27 @@ class BillPayment
         return $this;
     }
 
-    function getSddBank(): SddBank
+    public function getSddBank(): SddBank
     {
         return $this->sddBank;
     }
 
-    function setSddBank(SddBank $sddBank): self
+    public function setSddBank(SddBank $sddBank): self
     {
         $this->sddBank = $sddBank;
+
         return $this;
     }
 
-    function getSddRegie(): SddRegie
+    public function getSddRegie(): SddRegie
     {
         return $this->sddRegie;
     }
 
-    function setSddRegie(SddRegie $sddRegie): self
+    public function setSddRegie(SddRegie $sddRegie): self
     {
         $this->sddRegie = $sddRegie;
+
         return $this;
     }
 }

+ 6 - 5
src/Entity/Billing/BillScheduleDate.php

@@ -5,7 +5,6 @@ declare(strict_types=1);
 namespace App\Entity\Billing;
 
 use ApiPlatform\Metadata\ApiResource;
-use DateTimeInterface;
 use Doctrine\ORM\Mapping as ORM;
 
 #[ApiResource(operations: [])]
@@ -21,25 +20,27 @@ class BillScheduleDate
     #[ORM\JoinColumn(referencedColumnName: 'id', nullable: true, onDelete: 'SET NULL')]
     protected mixed $billSchedule;
 
-    function getId(): int
+    public function getId(): int
     {
         return $this->id;
     }
 
-    function setId(int $id): self
+    public function setId(int $id): self
     {
         $this->id = $id;
+
         return $this;
     }
 
-    function getBillSchedule(): mixed
+    public function getBillSchedule(): mixed
     {
         return $this->billSchedule;
     }
 
-    function setBillSchedule(mixed $billSchedule): self
+    public function setBillSchedule(mixed $billSchedule): self
     {
         $this->billSchedule = $billSchedule;
+
         return $this;
     }
 }

+ 7 - 5
src/Entity/Billing/BillingExportSetting.php

@@ -55,22 +55,24 @@ class BillingExportSetting
         return $this;
     }
 
-    function getOrganization(): Organization
+    public function getOrganization(): Organization
     {
         return $this->organization;
     }
 
-    function setOrganization(Organization $organization): self
+    public function setOrganization(Organization $organization): self
     {
         $this->organization = $organization;
+
         return $this;
     }
-    function getStageManagers(): Collection
+
+    public function getStageManagers(): Collection
     {
         return $this->stageManagers;
     }
 
-    function addStageManager(Access $stageManager): self
+    public function addStageManager(Access $stageManager): self
     {
         if (!$this->stageManagers->contains($stageManager)) {
             $this->stageManagers[] = $stageManager;
@@ -80,7 +82,7 @@ class BillingExportSetting
         return $this;
     }
 
-    function removeStageManager(Access $stageManager): self
+    public function removeStageManager(Access $stageManager): self
     {
         $this->stageManagers->removeElement($stageManager);
         // TODO: compléter (je n'ai pas le mappedBy)

+ 3 - 2
src/Entity/Billing/BillingSetting.php

@@ -132,14 +132,15 @@ class BillingSetting
         return $this;
     }
 
-    function getBillingSettingRent(): BillingSettingRent
+    public function getBillingSettingRent(): BillingSettingRent
     {
         return $this->billingSettingRent;
     }
 
-    function setBillingSettingRent(BillingSettingRent $billingSettingRent): self
+    public function setBillingSettingRent(BillingSettingRent $billingSettingRent): self
     {
         $this->billingSettingRent = $billingSettingRent;
+
         return $this;
     }
 }

+ 4 - 2
src/Entity/Billing/BillingSettingRent.php

@@ -22,16 +22,18 @@ class BillingSettingRent
     #[ORM\OneToOne(inversedBy: 'billingSettingRent', targetEntity: BillingSetting::class, cascade: [])]
     protected BillingSetting $billingSetting;
 
-    function getBillingSetting(): BillingSetting
+    public function getBillingSetting(): BillingSetting
     {
         return $this->billingSetting;
     }
 
-    function setBillingSetting(BillingSetting $billingSetting): self
+    public function setBillingSetting(BillingSetting $billingSetting): self
     {
         $this->billingSetting = $billingSetting;
+
         return $this;
     }
+
     public function getId(): ?int
     {
         return $this->id;

+ 3 - 2
src/Entity/Billing/Ciril.php

@@ -68,14 +68,15 @@ class Ciril
         return $this;
     }
 
-    function getFile(): File
+    public function getFile(): File
     {
         return $this->file;
     }
 
-    function setFile(File $file): self
+    public function setFile(File $file): self
     {
         $this->file = $file;
+
         return $this;
     }
 }

+ 3 - 2
src/Entity/Billing/Jvs.php

@@ -68,14 +68,15 @@ class Jvs
         return $this;
     }
 
-    function getFile(): File
+    public function getFile(): File
     {
         return $this->file;
     }
 
-    function setFile(File $file): self
+    public function setFile(File $file): self
     {
         $this->file = $file;
+
         return $this;
     }
 }

+ 3 - 5
src/Entity/Billing/PayboxPaymentReturn.php

@@ -5,9 +5,6 @@ declare(strict_types=1);
 namespace App\Entity\Billing;
 
 use ApiPlatform\Metadata\ApiResource;
-use DateTimeInterface;
-use Doctrine\Common\Collections\ArrayCollection;
-use Doctrine\Common\Collections\Collection;
 use Doctrine\ORM\Mapping as ORM;
 
 #[ApiResource(operations: [])]
@@ -19,14 +16,15 @@ class PayboxPaymentReturn
     #[ORM\GeneratedValue]
     private int $id;
 
-    function getId(): int
+    public function getId(): int
     {
         return $this->id;
     }
 
-    function setId(int $id): self
+    public function setId(int $id): self
     {
         $this->id = $id;
+
         return $this;
     }
 }

+ 3 - 2
src/Entity/Billing/Pes.php

@@ -68,14 +68,15 @@ class Pes
         return $this;
     }
 
-    function getFile(): File
+    public function getFile(): File
     {
         return $this->file;
     }
 
-    function setFile(File $file): self
+    public function setFile(File $file): self
     {
         $this->file = $file;
+
         return $this;
     }
 }

+ 3 - 2
src/Entity/Billing/PesSetting.php

@@ -28,14 +28,15 @@ class PesSetting
         return $this->id;
     }
 
-    function getOrganization(): Organization
+    public function getOrganization(): Organization
     {
         return $this->organization;
     }
 
-    function setOrganization(Organization $organization): self
+    public function setOrganization(Organization $organization): self
     {
         $this->organization = $organization;
+
         return $this;
     }
 }

+ 6 - 5
src/Entity/Billing/SddBank.php

@@ -38,12 +38,12 @@ class SddBank
         return $this->id;
     }
 
-    function getBillPayments(): Collection
+    public function getBillPayments(): Collection
     {
         return $this->billPayments;
     }
 
-    function addBillPayment(BillPayment $billPayment): self
+    public function addBillPayment(BillPayment $billPayment): self
     {
         if (!$this->billPayments->contains($billPayment)) {
             $this->billPayments[] = $billPayment;
@@ -53,7 +53,7 @@ class SddBank
         return $this;
     }
 
-    function removeBillPayment(BillPayment $billPayment): self
+    public function removeBillPayment(BillPayment $billPayment): self
     {
         if ($this->billPayments->removeElement($billPayment)) {
 //            $billPayment->setSddBank(null); // TODO: actuellement, pas nullable: conserver?
@@ -62,14 +62,15 @@ class SddBank
         return $this;
     }
 
-    function getFile(): File
+    public function getFile(): File
     {
         return $this->file;
     }
 
-    function setFile(File $file): self
+    public function setFile(File $file): self
     {
         $this->file = $file;
+
         return $this;
     }
 }

+ 9 - 7
src/Entity/Billing/SddRegie.php

@@ -42,12 +42,12 @@ class SddRegie
         return $this->id;
     }
 
-    function getBillPayments(): Collection
+    public function getBillPayments(): Collection
     {
         return $this->billPayments;
     }
 
-    function addBillPayment(BillPayment $billPayment): self
+    public function addBillPayment(BillPayment $billPayment): self
     {
         if (!$this->billPayments->contains($billPayment)) {
             $this->billPayments[] = $billPayment;
@@ -57,7 +57,7 @@ class SddRegie
         return $this;
     }
 
-    function removeBillPayment(BillPayment $billPayment): self
+    public function removeBillPayment(BillPayment $billPayment): self
     {
         if ($this->billPayments->removeElement($billPayment)) {
 //            $billPayment->setSddBank(null); // TODO: actuellement, pas nullable: conserver?
@@ -66,25 +66,27 @@ class SddRegie
         return $this;
     }
 
-    function getFile(): File
+    public function getFile(): File
     {
         return $this->file;
     }
 
-    function setFile(File $file): self
+    public function setFile(File $file): self
     {
         $this->file = $file;
+
         return $this;
     }
 
-    function getBordereau(): File
+    public function getBordereau(): File
     {
         return $this->bordereau;
     }
 
-    function setBordereau(File $bordereau): self
+    public function setBordereau(File $bordereau): self
     {
         $this->bordereau = $bordereau;
+
         return $this;
     }
 }

+ 10 - 10
src/Entity/Booking/AbstractBooking.php

@@ -16,7 +16,7 @@ use Doctrine\Common\Collections\Collection;
 use Doctrine\ORM\Mapping as ORM;
 
 /**
- * Données d'un évènement générique, classe de base des évènements
+ * Données d'un évènement générique, classe de base des évènements.
  *
  * @see Event, Course, EducationalProject, Examen, OrganizationHoliday, PersonHoliday
  */
@@ -131,12 +131,12 @@ abstract class AbstractBooking
         return $this;
     }
 
-    function getOrganizer(): Collection
+    public function getOrganizer(): Collection
     {
         return $this->organizer;
     }
 
-    function addOrganizer(Access $organizer): self
+    public function addOrganizer(Access $organizer): self
     {
         if (!$this->organizer->contains($organizer)) {
             $this->organizer[] = $organizer;
@@ -145,19 +145,19 @@ abstract class AbstractBooking
         return $this;
     }
 
-    function removeOrganizer(Access $organizer): self
+    public function removeOrganizer(Access $organizer): self
     {
         $this->organizer->removeElement($organizer);
 
         return $this;
     }
 
-    function getEquipments(): Collection
+    public function getEquipments(): Collection
     {
         return $this->equipments;
     }
 
-    function addEquipment(Equipment $equipment): self
+    public function addEquipment(Equipment $equipment): self
     {
         if (!$this->equipments->contains($equipment)) {
             $this->equipments[] = $equipment;
@@ -166,19 +166,19 @@ abstract class AbstractBooking
         return $this;
     }
 
-    function removeEquipment(Equipment $equipment): self
+    public function removeEquipment(Equipment $equipment): self
     {
         $this->equipments->removeElement($equipment);
 
         return $this;
     }
 
-    function getTags(): Collection
+    public function getTags(): Collection
     {
         return $this->tags;
     }
 
-    function addTag(Tagg $tag): self
+    public function addTag(Tagg $tag): self
     {
         if (!$this->tags->contains($tag)) {
             $this->tags[] = $tag;
@@ -187,7 +187,7 @@ abstract class AbstractBooking
         return $this;
     }
 
-    function removeTag(Tagg $tag): self
+    public function removeTag(Tagg $tag): self
     {
         $this->tags->removeElement($tag);
 

+ 6 - 4
src/Entity/Booking/CalendarSynchro.php

@@ -32,25 +32,27 @@ class CalendarSynchro
         return $this->id;
     }
 
-    function getAccess(): Access
+    public function getAccess(): Access
     {
         return $this->access;
     }
 
-    function setAccess(Access $access): self
+    public function setAccess(Access $access): self
     {
         $this->access = $access;
+
         return $this;
     }
 
-    function getFile(): File
+    public function getFile(): File
     {
         return $this->file;
     }
 
-    function setFile(File $file): self
+    public function setFile(File $file): self
     {
         $this->file = $file;
+
         return $this;
     }
 }

+ 3 - 3
src/Entity/Booking/Course.php

@@ -428,12 +428,12 @@ class Course extends AbstractBooking
         return $this;
     }
 
-    function getEducationStudentWishes(): Collection
+    public function getEducationStudentWishes(): Collection
     {
         return $this->educationStudentWishes;
     }
 
-    function addEducationStudentWish(EducationStudentWish $educationStudentWish): self
+    public function addEducationStudentWish(EducationStudentWish $educationStudentWish): self
     {
         if (!$this->educationStudentWishes->contains($educationStudentWish)) {
             $this->educationStudentWishes[] = $educationStudentWish;
@@ -442,7 +442,7 @@ class Course extends AbstractBooking
         return $this;
     }
 
-    function removeEducationStudentWish(EducationStudentWish $educationStudentWish): self
+    public function removeEducationStudentWish(EducationStudentWish $educationStudentWish): self
     {
         $this->educationStudentWishes->removeElement($educationStudentWish);
 

+ 3 - 3
src/Entity/Booking/EducationalProject.php

@@ -15,7 +15,6 @@ use App\Entity\Organization\Organization;
 use App\Entity\Place\AbstractPlace;
 use App\Entity\Place\Room;
 // use DH\Auditor\Provider\Doctrine\Auditing\Annotation\Auditable;
-use App\Entity\Product\Equipment;
 use Doctrine\Common\Collections\ArrayCollection;
 use Doctrine\Common\Collections\Collection;
 use Doctrine\ORM\Mapping as ORM;
@@ -490,14 +489,15 @@ class EducationalProject extends AbstractBooking
         return $this;
     }
 
-    function getAgeDistribution(): EducationalProjectAge
+    public function getAgeDistribution(): EducationalProjectAge
     {
         return $this->ageDistribution;
     }
 
-    function setAgeDistribution(EducationalProjectAge $ageDistribution): self
+    public function setAgeDistribution(EducationalProjectAge $ageDistribution): self
     {
         $this->ageDistribution = $ageDistribution;
+
         return $this;
     }
 }

+ 3 - 3
src/Entity/Booking/Event.php

@@ -14,7 +14,6 @@ use App\Entity\Place\AbstractPlace;
 use App\Entity\Place\PlaceSystem;
 use App\Entity\Place\Room;
 // use DH\Auditor\Provider\Doctrine\Auditing\Annotation\Auditable;
-use App\Entity\Product\Equipment;
 use Doctrine\Common\Collections\ArrayCollection;
 use Doctrine\Common\Collections\Collection;
 use Doctrine\ORM\Mapping as ORM;
@@ -455,14 +454,15 @@ class Event extends AbstractBooking
         return $this;
     }
 
-    function getEquipments(): Collection
+    public function getEquipments(): Collection
     {
         return $this->equipments;
     }
 
-    function setEquipments(Collection $equipments): self
+    public function setEquipments(Collection $equipments): self
     {
         $this->equipments = $equipments;
+
         return $this;
     }
 }

+ 3 - 2
src/Entity/Booking/PersonHoliday.php

@@ -101,14 +101,15 @@ class PersonHoliday extends AbstractBooking
         return $this;
     }
 
-    function getOrganization(): Organization
+    public function getOrganization(): Organization
     {
         return $this->organization;
     }
 
-    function setOrganization(Organization $organization): self
+    public function setOrganization(Organization $organization): self
     {
         $this->organization = $organization;
+
         return $this;
     }
 }

+ 6 - 5
src/Entity/Core/AbstractControl.php

@@ -34,23 +34,24 @@ abstract class AbstractControl
         return $this->id;
     }
 
-    function getAccompanist(): Access
+    public function getAccompanist(): Access
     {
         return $this->accompanist;
     }
 
-    function setAccompanist(Access $accompanist): self
+    public function setAccompanist(Access $accompanist): self
     {
         $this->accompanist = $accompanist;
+
         return $this;
     }
 
-    function getTags(): Collection
+    public function getTags(): Collection
     {
         return $this->tags;
     }
 
-    function addTag(Tagg $tag): self
+    public function addTag(Tagg $tag): self
     {
         if (!$this->tags->contains($tag)) {
             $this->tags[] = $tag;
@@ -60,7 +61,7 @@ abstract class AbstractControl
         return $this;
     }
 
-    function removeTag(Tagg $tag): self
+    public function removeTag(Tagg $tag): self
     {
         if ($this->tags->removeElement($tag)) {
             $tag->addControl($this);

+ 1 - 1
src/Entity/Core/AbstractRepair.php

@@ -29,7 +29,7 @@ abstract class AbstractRepair
         return $this->id;
     }
 
-    function getTags(): Collection
+    public function getTags(): Collection
     {
         return $this->tags;
     }

+ 3 - 3
src/Entity/Core/AddressPostal.php

@@ -254,12 +254,12 @@ class AddressPostal
         return $this;
     }
 
-    function getOrganizationAddressPostals(): Collection
+    public function getOrganizationAddressPostals(): Collection
     {
         return $this->organizationAddressPostals;
     }
 
-    function addOrganizationAddressPostal(OrganizationAddressPostal $organizationAddressPostal): self
+    public function addOrganizationAddressPostal(OrganizationAddressPostal $organizationAddressPostal): self
     {
         if (!$this->organizationAddressPostals->contains($organizationAddressPostal)) {
             $this->organizationAddressPostals[] = $organizationAddressPostal;
@@ -269,7 +269,7 @@ class AddressPostal
         return $this;
     }
 
-    function removeOrganizationAddressPostal(OrganizationAddressPostal $organizationAddressPostal): self
+    public function removeOrganizationAddressPostal(OrganizationAddressPostal $organizationAddressPostal): self
     {
         if ($this->organizationAddressPostals->removeElement($organizationAddressPostal)) {
 //            $organizationAddressPostal->setAddressPostal(null); // TODO: actuellement, pas nullable: conserver?

+ 3 - 2
src/Entity/Core/City.php

@@ -28,14 +28,15 @@ class City
         return $this->id;
     }
 
-    function getDepartment(): Department
+    public function getDepartment(): Department
     {
         return $this->department;
     }
 
-    function setDepartment(Department $department): self
+    public function setDepartment(Department $department): self
     {
         $this->department = $department;
+
         return $this;
     }
 }

+ 3 - 2
src/Entity/Core/Department.php

@@ -28,14 +28,15 @@ class Department
         return $this->id;
     }
 
-    function getRegion(): Region
+    public function getRegion(): Region
     {
         return $this->region;
     }
 
-    function setRegion(Region $region): self
+    public function setRegion(Region $region): self
     {
         $this->region = $region;
+
         return $this;
     }
 }

+ 1 - 0
src/Entity/Core/File.php

@@ -780,6 +780,7 @@ class File
     public function setCalendarSynchro(CalendarSynchro $calendarSynchro): self
     {
         $this->calendarSynchro = $calendarSynchro;
+
         return $this;
     }
 }

+ 22 - 18
src/Entity/Core/LoginLog.php

@@ -5,9 +5,6 @@ declare(strict_types=1);
 namespace App\Entity\Core;
 
 use ApiPlatform\Metadata\ApiResource;
-use DateTimeInterface;
-use Doctrine\Common\Collections\ArrayCollection;
-use Doctrine\Common\Collections\Collection;
 use Doctrine\ORM\Mapping as ORM;
 
 #[ApiResource(operations: [])]
@@ -32,85 +29,92 @@ class LoginLog
     protected mixed $ip;
 
     #[ORM\Column(type: 'date', options: ['nullable' => true])]
-    protected ?DateTimeInterface $date;
+    protected ?\DateTimeInterface $date;
 
     #[ORM\Column]
     protected mixed $type;
 
-    function getId(): int
+    public function getId(): int
     {
         return $this->id;
     }
 
-    function setId(int $id): self
+    public function setId(int $id): self
     {
         $this->id = $id;
+
         return $this;
     }
 
-    function getLogin(): mixed
+    public function getLogin(): mixed
     {
         return $this->login;
     }
 
-    function setLogin(mixed $login): self
+    public function setLogin(mixed $login): self
     {
         $this->login = $login;
+
         return $this;
     }
 
-    function getOrganizationId(): int
+    public function getOrganizationId(): int
     {
         return $this->organizationId;
     }
 
-    function setOrganizationId(int $organizationId): self
+    public function setOrganizationId(int $organizationId): self
     {
         $this->organizationId = $organizationId;
+
         return $this;
     }
 
-    function getNavigateur(): mixed
+    public function getNavigateur(): mixed
     {
         return $this->navigateur;
     }
 
-    function setNavigateur(mixed $navigateur): self
+    public function setNavigateur(mixed $navigateur): self
     {
         $this->navigateur = $navigateur;
+
         return $this;
     }
 
-    function getIp(): mixed
+    public function getIp(): mixed
     {
         return $this->ip;
     }
 
-    function setIp(mixed $ip): self
+    public function setIp(mixed $ip): self
     {
         $this->ip = $ip;
+
         return $this;
     }
 
-    function getDate(): DateTimeInterface
+    public function getDate(): \DateTimeInterface
     {
         return $this->date;
     }
 
-    function setDate(DateTimeInterface $date): self
+    public function setDate(\DateTimeInterface $date): self
     {
         $this->date = $date;
+
         return $this;
     }
 
-    function getType(): mixed
+    public function getType(): mixed
     {
         return $this->type;
     }
 
-    function setType(mixed $type): self
+    public function setType(mixed $type): self
     {
         $this->type = $type;
+
         return $this;
     }
 }

+ 3 - 2
src/Entity/Core/Region.php

@@ -28,14 +28,15 @@ class Region
         return $this->id;
     }
 
-    function getCountry(): Country
+    public function getCountry(): Country
     {
         return $this->country;
     }
 
-    function setCountry(Country $country): self
+    public function setCountry(Country $country): self
     {
         $this->country = $country;
+
         return $this;
     }
 }

+ 19 - 20
src/Entity/Core/Tagg.php

@@ -7,8 +7,8 @@ namespace App\Entity\Core;
 use ApiPlatform\Metadata\ApiResource;
 use App\Entity\Access\Access;
 use App\Entity\AccessWish\AccessWish;
-use App\Entity\Billing\AbstractBillingIntangible;
 use App\Entity\Billing\AbstractBillAccounting;
+use App\Entity\Billing\AbstractBillingIntangible;
 use App\Entity\Billing\BillPayment;
 use App\Entity\Booking\AbstractBooking;
 use App\Entity\Booking\Course;
@@ -192,7 +192,6 @@ class Tagg
         $this->repairs = new ArrayCollection();
         $this->controls = new ArrayCollection();
         $this->educationCurriculumPacks = new ArrayCollection();
-
     }
 
     public function getId(): ?int
@@ -941,12 +940,12 @@ class Tagg
         return $this;
     }
 
-    function getProducts(): Collection
+    public function getProducts(): Collection
     {
         return $this->products;
     }
 
-    function addProduct(AbstractProduct $product): self
+    public function addProduct(AbstractProduct $product): self
     {
         if (!$this->products->contains($product)) {
             $this->products[] = $product;
@@ -956,7 +955,7 @@ class Tagg
         return $this;
     }
 
-    function removeProduct(AbstractProduct $product): self
+    public function removeProduct(AbstractProduct $product): self
     {
         if ($this->products->removeElement($product)) {
             $product->removeTag($this);
@@ -965,12 +964,12 @@ class Tagg
         return $this;
     }
 
-    function getBookings(): Collection
+    public function getBookings(): Collection
     {
         return $this->bookings;
     }
 
-    function addBooking(AbstractBooking $booking): self
+    public function addBooking(AbstractBooking $booking): self
     {
         if (!$this->bookings->contains($booking)) {
             $this->bookings[] = $booking;
@@ -980,7 +979,7 @@ class Tagg
         return $this;
     }
 
-    function removeBooking(AbstractBooking $booking): self
+    public function removeBooking(AbstractBooking $booking): self
     {
         if ($this->bookings->removeElement($booking)) {
             $booking->removeTag($this);
@@ -989,12 +988,12 @@ class Tagg
         return $this;
     }
 
-    function getMessages(): Collection
+    public function getMessages(): Collection
     {
         return $this->messages;
     }
 
-    function addMessage(mixed $message): self
+    public function addMessage(mixed $message): self
     {
         if (!$this->messages->contains($message)) {
             $this->messages[] = $message;
@@ -1004,7 +1003,7 @@ class Tagg
         return $this;
     }
 
-    function removeMessage(mixed $message): self
+    public function removeMessage(mixed $message): self
     {
         if ($this->messages->removeElement($message)) {
             $message->removeTag($this);
@@ -1013,12 +1012,12 @@ class Tagg
         return $this;
     }
 
-    function getRepairs(): Collection
+    public function getRepairs(): Collection
     {
         return $this->repairs;
     }
 
-    function addRepair(AbstractRepair $repair): self
+    public function addRepair(AbstractRepair $repair): self
     {
         if (!$this->repairs->contains($repair)) {
             $this->repairs[] = $repair;
@@ -1028,7 +1027,7 @@ class Tagg
         return $this;
     }
 
-    function removeRepair(AbstractRepair $repair): self
+    public function removeRepair(AbstractRepair $repair): self
     {
         if ($this->repairs->removeElement($repair)) {
             $repair->removeTag($this);
@@ -1037,12 +1036,12 @@ class Tagg
         return $this;
     }
 
-    function getControls(): Collection
+    public function getControls(): Collection
     {
         return $this->controls;
     }
 
-    function addControl(AbstractControl $control): self
+    public function addControl(AbstractControl $control): self
     {
         if (!$this->controls->contains($control)) {
             $this->controls[] = $control;
@@ -1052,7 +1051,7 @@ class Tagg
         return $this;
     }
 
-    function removeControl(AbstractControl $control): self
+    public function removeControl(AbstractControl $control): self
     {
         if ($this->controls->removeElement($control)) {
             $control->removeTag($this);
@@ -1061,12 +1060,12 @@ class Tagg
         return $this;
     }
 
-    function getEducationCurriculumPacks(): Collection
+    public function getEducationCurriculumPacks(): Collection
     {
         return $this->educationCurriculumPacks;
     }
 
-    function addEducationCurriculumPack(EducationCurriculumPack $educationCurriculumPack): self
+    public function addEducationCurriculumPack(EducationCurriculumPack $educationCurriculumPack): self
     {
         if (!$this->educationCurriculumPacks->contains($educationCurriculumPack)) {
             $this->educationCurriculumPacks[] = $educationCurriculumPack;
@@ -1076,7 +1075,7 @@ class Tagg
         return $this;
     }
 
-    function removeEducationCurriculumPack(EducationCurriculumPack $educationCurriculumPack): self
+    public function removeEducationCurriculumPack(EducationCurriculumPack $educationCurriculumPack): self
     {
         if ($this->educationCurriculumPacks->removeElement($educationCurriculumPack)) {
             $educationCurriculumPack->removeTag($this);

+ 3 - 3
src/Entity/Education/Cycle.php

@@ -169,12 +169,12 @@ class Cycle
         return $this;
     }
 
-    function getEducationCurriculums(): Collection
+    public function getEducationCurriculums(): Collection
     {
         return $this->educationCurriculums;
     }
 
-    function addEducationCurriculum(EducationCurriculum $educationCurriculum): self
+    public function addEducationCurriculum(EducationCurriculum $educationCurriculum): self
     {
         if (!$this->educationCurriculums->contains($educationCurriculum)) {
             $this->educationCurriculums[] = $educationCurriculum;
@@ -184,7 +184,7 @@ class Cycle
         return $this;
     }
 
-    function removeEducationCurriculum(EducationCurriculum $educationCurriculum): self
+    public function removeEducationCurriculum(EducationCurriculum $educationCurriculum): self
     {
         if ($this->educationCurriculums->removeElement($educationCurriculum)) {
             $educationCurriculum->setCycle(null);

+ 3 - 3
src/Entity/Education/Education.php

@@ -289,12 +289,12 @@ class Education
         return $this;
     }
 
-    function getEducationWishes(): Collection
+    public function getEducationWishes(): Collection
     {
         return $this->educationWishes;
     }
 
-    function addEducationWish(EducationStudentWish $educationWish): self
+    public function addEducationWish(EducationStudentWish $educationWish): self
     {
         if (!$this->educationWishes->contains($educationWish)) {
             $this->educationWishes[] = $educationWish;
@@ -304,7 +304,7 @@ class Education
         return $this;
     }
 
-    function removeEducationWish(EducationStudentWish $educationWish): self
+    public function removeEducationWish(EducationStudentWish $educationWish): self
     {
         if ($this->educationWishes->removeElement($educationWish)) {
             $educationWish->setEducationWish(null);

+ 3 - 3
src/Entity/Education/EducationComplement.php

@@ -34,12 +34,12 @@ class EducationComplement
         return $this->id;
     }
 
-    function getEducations(): Collection
+    public function getEducations(): Collection
     {
         return $this->educations;
     }
 
-    function addEducation(Education $education): self
+    public function addEducation(Education $education): self
     {
         if (!$this->educations->contains($education)) {
             $this->educations[] = $education;
@@ -49,7 +49,7 @@ class EducationComplement
         return $this;
     }
 
-    function removeEducation(Education $education): self
+    public function removeEducation(Education $education): self
     {
         if ($this->educations->removeElement($education)) {
             $education->setEducationComplement(null);

+ 18 - 18
src/Entity/Education/EducationCurriculum.php

@@ -190,12 +190,12 @@ class EducationCurriculum
         return $this;
     }
 
-    function getEducationStudentWish(): Collection
+    public function getEducationStudentWish(): Collection
     {
         return $this->educationStudentWish;
     }
 
-    function addEducationStudentWish(EducationStudentWish $educationStudentWish): self
+    public function addEducationStudentWish(EducationStudentWish $educationStudentWish): self
     {
         if (!$this->educationStudentWish->contains($educationStudentWish)) {
             $this->educationStudentWish[] = $educationStudentWish;
@@ -205,7 +205,7 @@ class EducationCurriculum
         return $this;
     }
 
-    function removeEducationStudentWish(EducationStudentWish $educationStudentWish): self
+    public function removeEducationStudentWish(EducationStudentWish $educationStudentWish): self
     {
         if ($this->educationStudentWish->removeElement($educationStudentWish)) {
             $educationStudentWish->setEducationCurriculum(null);
@@ -214,12 +214,12 @@ class EducationCurriculum
         return $this;
     }
 
-    function getCourses(): Collection
+    public function getCourses(): Collection
     {
         return $this->courses;
     }
 
-    function addCourse(Course $course): self
+    public function addCourse(Course $course): self
     {
         if (!$this->courses->contains($course)) {
             $this->courses[] = $course;
@@ -229,7 +229,7 @@ class EducationCurriculum
         return $this;
     }
 
-    function removeCourse(Course $course): self
+    public function removeCourse(Course $course): self
     {
         if ($this->courses->removeElement($course)) {
             $course->removeEducationCurriculum($this);
@@ -238,12 +238,12 @@ class EducationCurriculum
         return $this;
     }
 
-    function getExamens(): Collection
+    public function getExamens(): Collection
     {
         return $this->examens;
     }
 
-    function addExamen(Examen $examen): self
+    public function addExamen(Examen $examen): self
     {
         if (!$this->examens->contains($examen)) {
             $this->examens[] = $examen;
@@ -253,7 +253,7 @@ class EducationCurriculum
         return $this;
     }
 
-    function removeExamen(Examen $examen): self
+    public function removeExamen(Examen $examen): self
     {
         if ($this->examens->removeElement($examen)) {
             $examen->removeEducationCurriculum($this);
@@ -262,12 +262,12 @@ class EducationCurriculum
         return $this;
     }
 
-    function getIntangibles(): Collection
+    public function getIntangibles(): Collection
     {
         return $this->intangibles;
     }
 
-    function addIntangible(Intangible $intangible): self
+    public function addIntangible(Intangible $intangible): self
     {
         if (!$this->intangibles->contains($intangible)) {
             $this->intangibles[] = $intangible;
@@ -277,7 +277,7 @@ class EducationCurriculum
         return $this;
     }
 
-    function removeIntangible(Intangible $intangible): self
+    public function removeIntangible(Intangible $intangible): self
     {
         if ($this->intangibles->removeElement($intangible)) {
             $intangible->removeEducationCurriculum($this);
@@ -310,12 +310,12 @@ class EducationCurriculum
         return $this;
     }
 
-    function getRequiredChoicesEducationCurriculumPacks(): Collection
+    public function getRequiredChoicesEducationCurriculumPacks(): Collection
     {
         return $this->requiredChoicesEducationCurriculumPacks;
     }
 
-    function addRequiredChoicesEducationCurriculumPack(
+    public function addRequiredChoicesEducationCurriculumPack(
         EducationCurriculumPack $requiredChoicesEducationCurriculumPack,
     ): self {
         if (!$this->requiredChoicesEducationCurriculumPacks->contains($requiredChoicesEducationCurriculumPack)) {
@@ -326,7 +326,7 @@ class EducationCurriculum
         return $this;
     }
 
-    function removeRequiredChoicesEducationCurriculumPack(
+    public function removeRequiredChoicesEducationCurriculumPack(
         EducationCurriculumPack $requiredChoicesEducationCurriculumPack,
     ): self {
         if ($this->requiredChoicesEducationCurriculumPacks->removeElement($requiredChoicesEducationCurriculumPack)) {
@@ -336,12 +336,12 @@ class EducationCurriculum
         return $this;
     }
 
-    function getOptionnalEducationCurriculumPacks(): Collection
+    public function getOptionnalEducationCurriculumPacks(): Collection
     {
         return $this->optionnalEducationCurriculumPacks;
     }
 
-    function addOptionnalEducationCurriculumPack(EducationCurriculumPack $optionnalEducationCurriculumPack): self
+    public function addOptionnalEducationCurriculumPack(EducationCurriculumPack $optionnalEducationCurriculumPack): self
     {
         if (!$this->optionnalEducationCurriculumPacks->contains($optionnalEducationCurriculumPack)) {
             $this->optionnalEducationCurriculumPacks[] = $optionnalEducationCurriculumPack;
@@ -351,7 +351,7 @@ class EducationCurriculum
         return $this;
     }
 
-    function removeOptionnalEducationCurriculumPack(EducationCurriculumPack $optionnalEducationCurriculumPack): self
+    public function removeOptionnalEducationCurriculumPack(EducationCurriculumPack $optionnalEducationCurriculumPack): self
     {
         if ($this->optionnalEducationCurriculumPacks->removeElement($optionnalEducationCurriculumPack)) {
             $optionnalEducationCurriculumPack->removeOptionnalEducationCurriculum($this);

+ 3 - 2
src/Entity/Education/EducationStudent.php

@@ -231,14 +231,15 @@ class EducationStudent
         return $this;
     }
 
-    function getSpeciality(): EquipmentList
+    public function getSpeciality(): EquipmentList
     {
         return $this->speciality;
     }
 
-    function setSpeciality(EquipmentList $speciality): self
+    public function setSpeciality(EquipmentList $speciality): self
     {
         $this->speciality = $speciality;
+
         return $this;
     }
 }

+ 3 - 3
src/Entity/Message/AbstractMessage.php

@@ -167,12 +167,12 @@ abstract class AbstractMessage
         return $this;
     }
 
-    function getReportMessage(): Collection
+    public function getReportMessage(): Collection
     {
         return $this->reportMessage;
     }
 
-    function addReportMessage(ReportMessage $reportMessage): self
+    public function addReportMessage(ReportMessage $reportMessage): self
     {
         if (!$this->reportMessage->contains($reportMessage)) {
             $this->reportMessage[] = $reportMessage;
@@ -182,7 +182,7 @@ abstract class AbstractMessage
         return $this;
     }
 
-    function removeReportMessage(ReportMessage $reportMessage): self
+    public function removeReportMessage(ReportMessage $reportMessage): self
     {
         if ($this->reportMessage->removeElement($reportMessage)) {
             $reportMessage->setMessage(null);

+ 0 - 1
src/Entity/Message/Email.php

@@ -6,7 +6,6 @@ namespace App\Entity\Message;
 
 use ApiPlatform\Metadata\ApiResource;
 use App\Entity\Access\Access;
-use App\Entity\Core\File;
 use App\Entity\Core\Tagg;
 // use DH\Auditor\Provider\Doctrine\Auditing\Annotation\Auditable;
 use Doctrine\Common\Collections\ArrayCollection;

+ 0 - 1
src/Entity/Message/Mail.php

@@ -6,7 +6,6 @@ namespace App\Entity\Message;
 
 use ApiPlatform\Metadata\ApiResource;
 use App\Entity\Access\Access;
-use App\Entity\Core\File;
 use App\Entity\Core\Tagg;
 // use DH\Auditor\Provider\Doctrine\Auditing\Annotation\Auditable;
 use Doctrine\Common\Collections\ArrayCollection;

+ 3 - 2
src/Entity/Network/Network.php

@@ -128,14 +128,15 @@ class Network
         return $this;
     }
 
-    function getImage(): File
+    public function getImage(): File
     {
         return $this->image;
     }
 
-    function setImage(File $image): self
+    public function setImage(File $image): self
     {
         $this->image = $image;
+
         return $this;
     }
 }

+ 3 - 2
src/Entity/Organization/Activity.php

@@ -195,14 +195,15 @@ class Activity
         return $this;
     }
 
-    function getTypeOfSection(): TypeOfPractice
+    public function getTypeOfSection(): TypeOfPractice
     {
         return $this->typeOfSection;
     }
 
-    function setTypeOfSection(TypeOfPractice $typeOfSection): self
+    public function setTypeOfSection(TypeOfPractice $typeOfSection): self
     {
         $this->typeOfSection = $typeOfSection;
+
         return $this;
     }
 }

+ 3 - 2
src/Entity/Organization/CotisationByYear.php

@@ -43,14 +43,15 @@ class CotisationByYear
         return $this;
     }
 
-    function getCotisationStaffInfos(): CotisationStaffInfos
+    public function getCotisationStaffInfos(): CotisationStaffInfos
     {
         return $this->cotisationStaffInfos;
     }
 
-    function setCotisationStaffInfos(CotisationStaffInfos $cotisationStaffInfos): self
+    public function setCotisationStaffInfos(CotisationStaffInfos $cotisationStaffInfos): self
     {
         $this->cotisationStaffInfos = $cotisationStaffInfos;
+
         return $this;
     }
 }

+ 3 - 2
src/Entity/Organization/CotisationStaffInfos.php

@@ -27,14 +27,15 @@ class CotisationStaffInfos
         return $this->id;
     }
 
-    function getCotisationByYear(): CotisationByYear
+    public function getCotisationByYear(): CotisationByYear
     {
         return $this->cotisationByYear;
     }
 
-    function setCotisationByYear(CotisationByYear $cotisationByYear): self
+    public function setCotisationByYear(CotisationByYear $cotisationByYear): self
     {
         $this->cotisationByYear = $cotisationByYear;
+
         return $this;
     }
 }

+ 3 - 2
src/Entity/Organization/OnlineRegistrationDocument.php

@@ -60,15 +60,16 @@ class OnlineRegistrationDocument
         return $this;
     }
 
-    function getAdultStudentOnlineRegistrationSettings(): OnlineRegistrationSettings
+    public function getAdultStudentOnlineRegistrationSettings(): OnlineRegistrationSettings
     {
         return $this->adultStudentOnlineRegistrationSettings;
     }
 
-    function setAdultStudentOnlineRegistrationSettings(
+    public function setAdultStudentOnlineRegistrationSettings(
         OnlineRegistrationSettings $adultStudentOnlineRegistrationSettings,
     ): self {
         $this->adultStudentOnlineRegistrationSettings = $adultStudentOnlineRegistrationSettings;
+
         return $this;
     }
 }

+ 6 - 5
src/Entity/Organization/OnlineRegistrationSettings.php

@@ -247,23 +247,24 @@ class OnlineRegistrationSettings
         return $this;
     }
 
-    function getOrganization(): Organization
+    public function getOrganization(): Organization
     {
         return $this->organization;
     }
 
-    function setOrganization(Organization $organization): self
+    public function setOrganization(Organization $organization): self
     {
         $this->organization = $organization;
+
         return $this;
     }
 
-    function getAdultStudentDocuments(): Collection
+    public function getAdultStudentDocuments(): Collection
     {
         return $this->adultStudentDocuments;
     }
 
-    function addAdultStudentDocument(OnlineRegistrationDocument $adultStudentDocument): self
+    public function addAdultStudentDocument(OnlineRegistrationDocument $adultStudentDocument): self
     {
         if (!$this->adultStudentDocuments->contains($adultStudentDocument)) {
             $this->adultStudentDocuments[] = $adultStudentDocument;
@@ -272,7 +273,7 @@ class OnlineRegistrationSettings
         return $this;
     }
 
-    function removeAdultStudentDocument(OnlineRegistrationDocument $adultStudentDocument): self
+    public function removeAdultStudentDocument(OnlineRegistrationDocument $adultStudentDocument): self
     {
         $this->adultStudentDocuments->removeElement($adultStudentDocument);
 

+ 33 - 30
src/Entity/Organization/Organization.php

@@ -485,7 +485,7 @@ class Organization
         return $this->accesses;
     }
 
-    function addAccess(Access $access): self
+    public function addAccess(Access $access): self
     {
         if (!$this->access->contains($access)) {
             $this->access[] = $access;
@@ -495,7 +495,7 @@ class Organization
         return $this;
     }
 
-    function removeAccess(Access $access): self
+    public function removeAccess(Access $access): self
     {
         if ($this->access->removeElement($access)) {
             $access->setOrganization(null);
@@ -1899,12 +1899,13 @@ class Organization
 
         return $this;
     }
-    function getNetwork(): Collection
+
+    public function getNetwork(): Collection
     {
         return $this->network;
     }
 
-    function addNetwork(NetworkOrganization $network): self
+    public function addNetwork(NetworkOrganization $network): self
     {
         if (!$this->network->contains($network)) {
             $this->network[] = $network;
@@ -1914,7 +1915,7 @@ class Organization
         return $this;
     }
 
-    function removeNetwork(NetworkOrganization $network): self
+    public function removeNetwork(NetworkOrganization $network): self
     {
         if ($this->network->removeElement($network)) {
             $network->setOrganization(null);
@@ -1923,12 +1924,12 @@ class Organization
         return $this;
     }
 
-    function getNetworkChild(): Collection
+    public function getNetworkChild(): Collection
     {
         return $this->networkChild;
     }
 
-    function addNetworkChild(NetworkOrganization $networkChild): self
+    public function addNetworkChild(NetworkOrganization $networkChild): self
     {
         if (!$this->networkChild->contains($networkChild)) {
             $this->networkChild[] = $networkChild;
@@ -1938,7 +1939,7 @@ class Organization
         return $this;
     }
 
-    function removeNetworkChild(NetworkOrganization $networkChild): self
+    public function removeNetworkChild(NetworkOrganization $networkChild): self
     {
         if ($this->networkChild->removeElement($networkChild)) {
             $networkChild->setParent(null);
@@ -1947,23 +1948,24 @@ class Organization
         return $this;
     }
 
-    function getBillingExportSetting(): BillingExportSetting
+    public function getBillingExportSetting(): BillingExportSetting
     {
         return $this->billingExportSetting;
     }
 
-    function setBillingExportSetting(BillingExportSetting $billingExportSetting): self
+    public function setBillingExportSetting(BillingExportSetting $billingExportSetting): self
     {
         $this->billingExportSetting = $billingExportSetting;
+
         return $this;
     }
 
-    function getMessages(): Collection
+    public function getMessages(): Collection
     {
         return $this->messages;
     }
 
-    function addMessage(mixed $message): self
+    public function addMessage(mixed $message): self
     {
         if (!$this->messages->contains($message)) {
             $this->messages[] = $message;
@@ -1973,7 +1975,7 @@ class Organization
         return $this;
     }
 
-    function removeMessage(mixed $message): self
+    public function removeMessage(mixed $message): self
     {
         if ($this->messages->removeElement($message)) {
             $message->setOrganization(null);
@@ -1982,23 +1984,24 @@ class Organization
         return $this;
     }
 
-    function getOnlineRegistrationSettings(): OnlineRegistrationSettings
+    public function getOnlineRegistrationSettings(): OnlineRegistrationSettings
     {
         return $this->onlineRegistrationSettings;
     }
 
-    function setOnlineRegistrationSettings(OnlineRegistrationSettings $onlineRegistrationSettings): self
+    public function setOnlineRegistrationSettings(OnlineRegistrationSettings $onlineRegistrationSettings): self
     {
         $this->onlineRegistrationSettings = $onlineRegistrationSettings;
+
         return $this;
     }
 
-    function getCotisationByYears(): Collection
+    public function getCotisationByYears(): Collection
     {
         return $this->cotisationByYears;
     }
 
-    function addCotisationByYear(CotisationByYear $cotisationByYear): self
+    public function addCotisationByYear(CotisationByYear $cotisationByYear): self
     {
         if (!$this->cotisationByYears->contains($cotisationByYear)) {
             $this->cotisationByYears[] = $cotisationByYear;
@@ -2008,7 +2011,7 @@ class Organization
         return $this;
     }
 
-    function removeCotisationByYear(CotisationByYear $cotisationByYear): self
+    public function removeCotisationByYear(CotisationByYear $cotisationByYear): self
     {
         if ($this->cotisationByYears->removeElement($cotisationByYear)) {
             $cotisationByYear->setOrganization(null);
@@ -2017,12 +2020,12 @@ class Organization
         return $this;
     }
 
-    function getAttendanceBookingReasons(): Collection
+    public function getAttendanceBookingReasons(): Collection
     {
         return $this->attendanceBookingReasons;
     }
 
-    function addAttendanceBookingReason(AttendanceBookingReason $attendanceBookingReason): self
+    public function addAttendanceBookingReason(AttendanceBookingReason $attendanceBookingReason): self
     {
         if (!$this->attendanceBookingReasons->contains($attendanceBookingReason)) {
             $this->attendanceBookingReasons[] = $attendanceBookingReason;
@@ -2032,7 +2035,7 @@ class Organization
         return $this;
     }
 
-    function removeAttendanceBookingReason(AttendanceBookingReason $attendanceBookingReason): self
+    public function removeAttendanceBookingReason(AttendanceBookingReason $attendanceBookingReason): self
     {
         if ($this->attendanceBookingReasons->removeElement($attendanceBookingReason)) {
             $attendanceBookingReason->setOrganization(null);
@@ -2041,12 +2044,12 @@ class Organization
         return $this;
     }
 
-    function getEducationCurriculumPacks(): Collection
+    public function getEducationCurriculumPacks(): Collection
     {
         return $this->educationCurriculumPacks;
     }
 
-    function addEducationCurriculumPack(Cycle $educationCurriculumPack): self
+    public function addEducationCurriculumPack(Cycle $educationCurriculumPack): self
     {
         if (!$this->educationCurriculumPacks->contains($educationCurriculumPack)) {
             $this->educationCurriculumPacks[] = $educationCurriculumPack;
@@ -2056,7 +2059,7 @@ class Organization
         return $this;
     }
 
-    function removeEducationCurriculumPack(Cycle $educationCurriculumPack): self
+    public function removeEducationCurriculumPack(Cycle $educationCurriculumPack): self
     {
         if ($this->educationCurriculumPacks->removeElement($educationCurriculumPack)) {
             $educationCurriculumPack->setOrganization(null);
@@ -2065,12 +2068,12 @@ class Organization
         return $this;
     }
 
-    function getFamilyQuotientModels(): Collection
+    public function getFamilyQuotientModels(): Collection
     {
         return $this->familyQuotientModels;
     }
 
-    function addFamilyQuotientModel(FamilyQuotientModel $familyQuotientModel): self
+    public function addFamilyQuotientModel(FamilyQuotientModel $familyQuotientModel): self
     {
         if (!$this->familyQuotientModels->contains($familyQuotientModel)) {
             $this->familyQuotientModels[] = $familyQuotientModel;
@@ -2080,7 +2083,7 @@ class Organization
         return $this;
     }
 
-    function removeFamilyQuotientModel(FamilyQuotientModel $familyQuotientModel): self
+    public function removeFamilyQuotientModel(FamilyQuotientModel $familyQuotientModel): self
     {
         if ($this->familyQuotientModels->removeElement($familyQuotientModel)) {
 //            $familyQuotientModel->setOrganization(null); // TODO: actuellement, pas nullable: conserver?
@@ -2089,12 +2092,12 @@ class Organization
         return $this;
     }
 
-    function getBillSchedules(): Collection
+    public function getBillSchedules(): Collection
     {
         return $this->billSchedules;
     }
 
-    function addBillSchedule(BillSchedule $billSchedule): self
+    public function addBillSchedule(BillSchedule $billSchedule): self
     {
         if (!$this->billSchedules->contains($billSchedule)) {
             $this->billSchedules[] = $billSchedule;
@@ -2104,7 +2107,7 @@ class Organization
         return $this;
     }
 
-    function removeBillSchedule(BillSchedule $billSchedule): self
+    public function removeBillSchedule(BillSchedule $billSchedule): self
     {
         if ($this->billSchedules->removeElement($billSchedule)) {
 //            $billSchedule->setOrganization(null);  // TODO: actuellement, pas nullable: conserver?

+ 3 - 0
src/Entity/Person/AllowedIp.php

@@ -32,6 +32,7 @@ class AllowedIp
     public function setId(int $id): self
     {
         $this->id = $id;
+
         return $this;
     }
 
@@ -43,6 +44,7 @@ class AllowedIp
     public function setPerson(Person $person): self
     {
         $this->person = $person;
+
         return $this;
     }
 
@@ -54,6 +56,7 @@ class AllowedIp
     public function setIpOrRange(string $ipOrRange): self
     {
         $this->ipOrRange = $ipOrRange;
+
         return $this;
     }
 }

+ 1 - 0
src/Entity/Person/Medical.php

@@ -35,6 +35,7 @@ class Medical
     public function setPerson(Person $person): self
     {
         $this->person = $person;
+
         return $this;
     }
 }

+ 1 - 0
src/Entity/Person/Person.php

@@ -603,6 +603,7 @@ class Person implements UserInterface, PasswordAuthenticatedUserInterface
     public function setMedical(Medical $medical): self
     {
         $this->medical = $medical;
+
         return $this;
     }
 

+ 1 - 1
src/Entity/Place/AbstractPlace.php

@@ -4,7 +4,6 @@ declare(strict_types=1);
 
 namespace App\Entity\Place;
 
-use ApiPlatform\Metadata\ApiResource;
 use App\Entity\Booking\Course;
 use App\Entity\Booking\EducationalProject;
 use App\Entity\Booking\Event;
@@ -109,6 +108,7 @@ abstract class AbstractPlace
     public function setDiscr(string $discr): self
     {
         $this->discr = $discr;
+
         return $this;
     }
 

+ 3 - 3
src/Entity/Product/AbstractProduct.php

@@ -37,12 +37,12 @@ abstract class AbstractProduct
         return $this->id;
     }
 
-    function getTags(): Collection
+    public function getTags(): Collection
     {
         return $this->tags;
     }
 
-    function addTag(Tagg $tag): self
+    public function addTag(Tagg $tag): self
     {
         if (!$this->tags->contains($tag)) {
             $this->tags[] = $tag;
@@ -52,7 +52,7 @@ abstract class AbstractProduct
         return $this;
     }
 
-    function removeTag(Tagg $tag): self
+    public function removeTag(Tagg $tag): self
     {
         if ($this->tags->removeElement($tag)) {
             $tag->removeProduct($this);

+ 12 - 12
src/Entity/Product/Equipment.php

@@ -406,12 +406,12 @@ class Equipment extends AbstractProduct
         return $this;
     }
 
-    function getTags(): Collection
+    public function getTags(): Collection
     {
         return $this->tags;
     }
 
-    function addTag(Tagg $tag): self
+    public function addTag(Tagg $tag): self
     {
         if (!$this->tags->contains($tag)) {
             $this->tags[] = $tag;
@@ -421,7 +421,7 @@ class Equipment extends AbstractProduct
         return $this;
     }
 
-    function removeTag(Tagg $tag): self
+    public function removeTag(Tagg $tag): self
     {
         if ($this->tags->removeElement($tag)) {
             $tag->removeProduct($this);
@@ -430,12 +430,12 @@ class Equipment extends AbstractProduct
         return $this;
     }
 
-    function getEquipmentCompositionChildren(): Collection
+    public function getEquipmentCompositionChildren(): Collection
     {
         return $this->equipmentCompositionChildren;
     }
 
-    function addEquipmentCompositionChildren(EquipmentComposition $equipmentCompositionChildren): self
+    public function addEquipmentCompositionChildren(EquipmentComposition $equipmentCompositionChildren): self
     {
         if (!$this->equipmentCompositionChildren->contains($equipmentCompositionChildren)) {
             $this->equipmentCompositionChildren[] = $equipmentCompositionChildren;
@@ -445,7 +445,7 @@ class Equipment extends AbstractProduct
         return $this;
     }
 
-    function removeEquipmentCompositionChildren(EquipmentComposition $equipmentCompositionChildren): self
+    public function removeEquipmentCompositionChildren(EquipmentComposition $equipmentCompositionChildren): self
     {
         if ($this->equipmentCompositionChildren->removeElement($equipmentCompositionChildren)) {
             $equipmentCompositionChildren->setChildren(null);
@@ -454,12 +454,12 @@ class Equipment extends AbstractProduct
         return $this;
     }
 
-    function getEquipmentLoanFiltered(): Collection
+    public function getEquipmentLoanFiltered(): Collection
     {
         return $this->equipmentLoanFiltered;
     }
 
-    function addEquipmentLoanFiltered(EquipmentLoan $equipmentLoanFiltered): self
+    public function addEquipmentLoanFiltered(EquipmentLoan $equipmentLoanFiltered): self
     {
         if (!$this->equipmentLoanFiltered->contains($equipmentLoanFiltered)) {
             $this->equipmentLoanFiltered[] = $equipmentLoanFiltered;
@@ -469,7 +469,7 @@ class Equipment extends AbstractProduct
         return $this;
     }
 
-    function removeEquipmentLoanFiltered(EquipmentLoan $equipmentLoanFiltered): self
+    public function removeEquipmentLoanFiltered(EquipmentLoan $equipmentLoanFiltered): self
     {
         if ($this->equipmentLoanFiltered->removeElement($equipmentLoanFiltered)) {
             $equipmentLoanFiltered->setEquipment(null);
@@ -478,12 +478,12 @@ class Equipment extends AbstractProduct
         return $this;
     }
 
-    function getExamenConvocations(): Collection
+    public function getExamenConvocations(): Collection
     {
         return $this->examenConvocations;
     }
 
-    function addExamenConvocation(ExamenConvocation $examenConvocation): self
+    public function addExamenConvocation(ExamenConvocation $examenConvocation): self
     {
         if (!$this->examenConvocations->contains($examenConvocation)) {
             $this->examenConvocations[] = $examenConvocation;
@@ -493,7 +493,7 @@ class Equipment extends AbstractProduct
         return $this;
     }
 
-    function removeExamenConvocation(ExamenConvocation $examenConvocation): self
+    public function removeExamenConvocation(ExamenConvocation $examenConvocation): self
     {
         if ($this->examenConvocations->removeElement($examenConvocation)) {
             $examenConvocation->removeEquipment($this);

+ 6 - 5
src/Entity/Product/Intangible.php

@@ -162,23 +162,24 @@ class Intangible extends AbstractProduct
         return $this;
     }
 
-    function getEducationCurriculumPacks(): Collection
+    public function getEducationCurriculumPacks(): Collection
     {
         return $this->educationCurriculumPacks;
     }
 
-    function setEducationCurriculumPacks(Collection $educationCurriculumPacks): self
+    public function setEducationCurriculumPacks(Collection $educationCurriculumPacks): self
     {
         $this->educationCurriculumPacks = $educationCurriculumPacks;
+
         return $this;
     }
 
-    function getIntangiblePriceAndDiscount(): IntangiblePriceAndDiscount
+    public function getIntangiblePriceAndDiscount(): IntangiblePriceAndDiscount
     {
         return $this->intangiblePriceAndDiscount;
     }
 
-    function addEducationCurriculumPack(EducationCurriculumPack $educationCurriculumPack): self
+    public function addEducationCurriculumPack(EducationCurriculumPack $educationCurriculumPack): self
     {
         if (!$this->educationCurriculumPacks->contains($educationCurriculumPack)) {
             $this->educationCurriculumPacks[] = $educationCurriculumPack;
@@ -188,7 +189,7 @@ class Intangible extends AbstractProduct
         return $this;
     }
 
-    function removeEducationCurriculumPack(EducationCurriculumPack $educationCurriculumPack): self
+    public function removeEducationCurriculumPack(EducationCurriculumPack $educationCurriculumPack): self
     {
         if ($this->educationCurriculumPacks->removeElement($educationCurriculumPack)) {
             $educationCurriculumPack->removeIntangible($this);

+ 6 - 4
src/Entity/Product/IntangibleDiscountDetail.php

@@ -86,25 +86,27 @@ class IntangibleDiscountDetail
         return $this;
     }
 
-    function getFamilyQuotientBandDetail(): FamilyQuotientBandDetail
+    public function getFamilyQuotientBandDetail(): FamilyQuotientBandDetail
     {
         return $this->familyQuotientBandDetail;
     }
 
-    function setFamilyQuotientBandDetail(FamilyQuotientBandDetail $familyQuotientBandDetail): self
+    public function setFamilyQuotientBandDetail(FamilyQuotientBandDetail $familyQuotientBandDetail): self
     {
         $this->familyQuotientBandDetail = $familyQuotientBandDetail;
+
         return $this;
     }
 
-    function getFamilyQuotientBand(): FamilyQuotientBand
+    public function getFamilyQuotientBand(): FamilyQuotientBand
     {
         return $this->familyQuotientBand;
     }
 
-    function setFamilyQuotientBand(FamilyQuotientBand $familyQuotientBand): self
+    public function setFamilyQuotientBand(FamilyQuotientBand $familyQuotientBand): self
     {
         $this->familyQuotientBand = $familyQuotientBand;
+
         return $this;
     }
 }

+ 6 - 5
src/Entity/Product/IntangiblePriceAndDiscount.php

@@ -74,26 +74,27 @@ class IntangiblePriceAndDiscount
         return $this;
     }
 
-
-    function getIntangible(): Intangible
+    public function getIntangible(): Intangible
     {
         return $this->intangible;
     }
 
-    function setIntangible(Intangible $intangible): self
+    public function setIntangible(Intangible $intangible): self
     {
         $this->intangible = $intangible;
+
         return $this;
     }
 
-    function getFamilyQuotientModel(): FamilyQuotientModel
+    public function getFamilyQuotientModel(): FamilyQuotientModel
     {
         return $this->familyQuotientModel;
     }
 
-    function setFamilyQuotientModel(?FamilyQuotientModel $familyQuotientModel): self
+    public function setFamilyQuotientModel(?FamilyQuotientModel $familyQuotientModel): self
     {
         $this->familyQuotientModel = $familyQuotientModel;
+
         return $this;
     }
 }

+ 2 - 0
src/Entity/Public/PublicEvent.php

@@ -352,6 +352,7 @@ class PublicEvent
     public function setStructureLongitude(?float $structureLongitude): self
     {
         $this->structureLongitude = $structureLongitude;
+
         return $this;
     }
 
@@ -363,6 +364,7 @@ class PublicEvent
     public function setStructureLatitude(?float $structureLatitude): self
     {
         $this->structureLatitude = $structureLatitude;
+
         return $this;
     }
 

+ 1 - 0
src/Service/Doctrine/SchemaValidation/DiffTypeEnum.php

@@ -1,4 +1,5 @@
 <?php
+
 declare(strict_types=1);
 
 namespace App\Service\Doctrine\SchemaValidation;

+ 31 - 39
src/Service/Doctrine/SchemaValidation/SchemaValidationService.php

@@ -1,4 +1,5 @@
 <?php
+
 declare(strict_types=1);
 
 namespace App\Service\Doctrine\SchemaValidation;
@@ -8,25 +9,24 @@ use App\Service\Utils\EntityUtils;
 use Doctrine\ORM\EntityManagerInterface;
 use Doctrine\ORM\Mapping\ClassMetadataInfo;
 use Doctrine\ORM\Mapping\MappingException;
-use RuntimeException;
 use Symfony\Contracts\HttpClient\Exception\ClientExceptionInterface;
 use Symfony\Contracts\HttpClient\Exception\RedirectionExceptionInterface;
 use Symfony\Contracts\HttpClient\Exception\ServerExceptionInterface;
 use Symfony\Contracts\HttpClient\Exception\TransportExceptionInterface;
 
 /**
- * Validation du schéma Doctrine par comparaison aux entités en production sur la V1
+ * Validation du schéma Doctrine par comparaison aux entités en production sur la V1.
  *
  * — À supprimer lorsque la migration sera achevée —
  */
 class SchemaValidationService
 {
     public function __construct(
-        private readonly EntityManagerInterface  $entityManager,
+        private readonly EntityManagerInterface $entityManager,
         private readonly ApiLegacyRequestService $apiLegacyRequestService,
-        private readonly EntityUtils $entityUtils
-    )
-    {}
+        private readonly EntityUtils $entityUtils,
+    ) {
+    }
 
     /**
      * Compare the V2 doctrine schema to the one in V1, and return a list of differences,
@@ -34,7 +34,8 @@ class SchemaValidationService
      *
      *     [<entity> → Difference | [<field> → Difference]]
      *
-     * @return array<string, Difference | array<Difference>>
+     * @return array<string, Difference|array<Difference>>
+     *
      * @throws ClientExceptionInterface
      * @throws MappingException
      * @throws RedirectionExceptionInterface
@@ -50,9 +51,10 @@ class SchemaValidationService
     }
 
     /**
-     * Retrieve the V2 schema
+     * Retrieve the V2 schema.
+     *
+     * @return array<string, array<string|array<string|int>>>
      *
-     * @return array<string, array<string | array<string|int>>>
      * @throws MappingException
      */
     protected function getV2Schema(): array
@@ -78,9 +80,10 @@ class SchemaValidationService
     }
 
     /**
-     * Retrieve the V1 schema
+     * Retrieve the V1 schema.
+     *
+     * @return array<string, array<string|array<string|int>>>
      *
-     * @return array<string, array<string | array<string|int>>>
      * @throws ClientExceptionInterface
      * @throws RedirectionExceptionInterface
      * @throws ServerExceptionInterface
@@ -94,11 +97,12 @@ class SchemaValidationService
     }
 
     /**
-     * Get a list of differences between V1 and V2 doctrine schemas
+     * Get a list of differences between V1 and V2 doctrine schemas.
+     *
+     * @param array<string, array<string|array<string|int>>> $schemaV1
+     * @param array<string, array<string|array<string|int>>> $schemaV2
      *
-     * @param array<string, array<string | array<string|int>>> $schemaV1
-     * @param array<string, array<string| array<string|int>>> $schemaV2
-     * @return array<string, Difference | array<Difference>>
+     * @return array<string, Difference|array<Difference>>
      */
     protected function getDiff(array $schemaV1, array $schemaV2, ?DiffTypeEnum $filter = null): array
     {
@@ -106,7 +110,6 @@ class SchemaValidationService
         ];
 
         foreach ($schemaV1 as $entity => $fields) {
-
             if (!$this->isEntityInSchema($schemaV2, $entity)) {
                 // L'entité n'existe pas en V2
                 if (!$filter || $filter === DiffTypeEnum::MISSING_ENTITY) {
@@ -121,13 +124,13 @@ class SchemaValidationService
 
             foreach ($fields as $field => $fieldTypeV1) {
                 if (
-                    !$this->isPropertyInSchema($schemaV2, $entity, $field) &&
-                    $this->isRelationField($schemaV1, $entity, $field) &&
-                    $this->isPropertyInSchema($schemaV2, $entity, $field .'s')
+                    !$this->isPropertyInSchema($schemaV2, $entity, $field)
+                    && $this->isRelationField($schemaV1, $entity, $field)
+                    && $this->isPropertyInSchema($schemaV2, $entity, $field.'s')
                 ) {
                     // Le champ existe en V2, mais il a été mis au pluriel, par exemple : $contactPoint devenu $contactPoints
                     // Pour éviter les faux positifs, on renomme le champ dans le schéma V1
-                    $schemaV1[$entity][$field .'s'] = $fieldTypeV1;
+                    $schemaV1[$entity][$field.'s'] = $fieldTypeV1;
                     unset($schemaV1[$entity][$field]);
                     $fields = $schemaV1[$entity];
                 }
@@ -136,13 +139,12 @@ class SchemaValidationService
             $diff[$entity] = [];
 
             foreach ($fields as $field => $fieldTypeV1) {
-
                 if (!$this->isPropertyInSchema($schemaV2, $entity, $field)) {
                     // Le champ n'existe pas en V2
                     if ($this->isRelationField($schemaV1, $entity, $field)) {
                         $diff[$entity][$field] = new Difference(
                             DiffTypeEnum::MISSING_RELATION,
-                            "Relation " . $this->getRelationTypeLabel($fieldTypeV1) . " `$field` is missing in V2",
+                            'Relation '.$this->getRelationTypeLabel($fieldTypeV1)." `$field` is missing in V2",
                             $fieldTypeV1,
                         );
                     } else {
@@ -199,11 +201,9 @@ class SchemaValidationService
     }
 
     /**
-     * Returns true if the given entity name exists in the doctrine schema
+     * Returns true if the given entity name exists in the doctrine schema.
      *
-     * @param array<string, array<string | array<string|int>>> $schema
-     * @param string $entity
-     * @return bool
+     * @param array<string, array<string|array<string|int>>> $schema
      */
     protected function isEntityInSchema(array $schema, string $entity): bool
     {
@@ -213,10 +213,7 @@ class SchemaValidationService
     /**
      * Returns true if the given property name exists in the doctrine schema under this entity.
      *
-     * @param array<string, array<string | array<string|int>>> $schema
-     * @param string $entity
-     * @param string $property
-     * @return bool
+     * @param array<string, array<string|array<string|int>>> $schema
      */
     protected function isPropertyInSchema(array $schema, string $entity, string $property): bool
     {
@@ -226,10 +223,7 @@ class SchemaValidationService
     /**
      * Is the given field a relation field.
      *
-     * @param array<string, array<string | array<string|int>>> $schema
-     * @param string $entity
-     * @param string $relation
-     * @return bool
+     * @param array<string, array<string|array<string|int>>> $schema
      */
     protected function isRelationField(array $schema, string $entity, string $relation): bool
     {
@@ -242,9 +236,8 @@ class SchemaValidationService
      *
      * @param array<string, string> $relationReference
      * @param array<string, string> $relationCompared
-     * @return Difference|null
      */
-    protected function getRelationDiff(array $relationReference, array $relationCompared): Difference|null
+    protected function getRelationDiff(array $relationReference, array $relationCompared): ?Difference
     {
         if ($relationReference['type'] !== $relationCompared['type']) {
             return new Difference(
@@ -259,7 +252,7 @@ class SchemaValidationService
         ) {
             return new Difference(
                 DiffTypeEnum::DIFFERENT_RELATION_CONFIGURATION,
-                "Relation configuration is different (targetEntity)",
+                'Relation configuration is different (targetEntity)',
                 $relationReference
             );
         }
@@ -269,7 +262,7 @@ class SchemaValidationService
         ) {
             return new Difference(
                 DiffTypeEnum::DIFFERENT_RELATION_CONFIGURATION,
-                "Relation configuration is different (mappedBy)",
+                'Relation configuration is different (mappedBy)',
                 $relationReference
             );
         }
@@ -281,7 +274,6 @@ class SchemaValidationService
      * Get the name of a relation from a ClassMetadataInfo integer constant.
      *
      * @param array<string, string|int> $relation
-     * @return string
      */
     protected function getRelationTypeLabel(array $relation): string
     {

+ 12 - 21
src/Service/Utils/EntityUtils.php

@@ -15,16 +15,16 @@ use Doctrine\ORM\EntityManagerInterface;
 class EntityUtils
 {
     /**
-     * Cache of the mapping between entity names and fully qualified names
+     * Cache of the mapping between entity names and fully qualified names.
      *
      * @var array<string, string>
      */
     protected array $entityNamesMappingCache = [];
 
     public function __construct(
-        private readonly EntityManagerInterface  $entityManager,
-    )
-    {}
+        private readonly EntityManagerInterface $entityManager,
+    ) {
+    }
 
     /**
      * @throws \ReflectionException
@@ -61,27 +61,21 @@ class EntityUtils
         }
     }
 
-
     /**
      * Extract an entity base name from a fully qualified name
-     * Ex: '\App\Entity\Core\File' => 'File'
-     *
-     * @param string $fullName
-     * @return string
+     * Ex: '\App\Entity\Core\File' => 'File'.
      */
     public function getEntityNameFromFullName(string $fullName): string
     {
         $parts = explode('\\', $fullName);
+
         return array_pop($parts);
     }
 
     /**
-     * Find the fully qualified name matching the given entity base name
+     * Find the fully qualified name matching the given entity base name.
      *
      * Ex: 'File' => '\App\Entity\Core\File'
-     *
-     * @param string $entityName
-     * @return string
      */
     public function getFullNameFromEntityName(string $entityName): string
     {
@@ -91,16 +85,15 @@ class EntityUtils
         if (!isset($this->entityNamesMappingCache[$entityName])) {
             throw new \LogicException('No entity found for name `'.$entityName.'`');
         }
-        return $this->entityNamesMappingCache[$entityName];
 
+        return $this->entityNamesMappingCache[$entityName];
     }
 
     /**
      * Populates a cache mapping entity base names to their fully qualified class names.
-     *
-     * @return void
      */
-    protected function populateEntityNamesMappingCache() : void {
+    protected function populateEntityNamesMappingCache(): void
+    {
         $this->entityNamesMappingCache = [];
         $metadata = $this->entityManager->getMetadataFactory()->getAllMetadata();
         foreach ($metadata as $entityMetadata) {
@@ -111,15 +104,13 @@ class EntityUtils
 
     /**
      * Get the namespace from a fully qualified name
-     * Ex: '\App\Entity\Core\File' => 'App\Entity\Core'
-     *
-     * @param string $entityName
-     * @return string|null
+     * Ex: '\App\Entity\Core\File' => 'App\Entity\Core'.
      */
     public function getNamespaceFromName(string $entityName): ?string
     {
         $parts = explode('\\', $entityName);
         array_pop($parts);
+
         return ltrim(implode('\\', $parts), '\\');
     }
 }

+ 1 - 4
src/Service/Utils/FileUtils.php

@@ -78,10 +78,7 @@ class FileUtils
     }
 
     /**
-     * Recursively remove a directory
-     *
-     * @param string $path
-     * @return void
+     * Recursively remove a directory.
      */
     public static function rrmDir(string $path): void
     {

+ 24 - 13
tests/Unit/Service/Utils/EntityUtilsTest.php

@@ -16,11 +16,13 @@ use PHPUnit\Framework\TestCase;
 
 class TestableEntityUtils extends EntityUtils
 {
-    public function getEntityNamesMappingCache(): array {
+    public function getEntityNamesMappingCache(): array
+    {
         return $this->entityNamesMappingCache;
     }
 
-    public function setEntityNamesMappingCache(array $entityNamesMappingCache) {
+    public function setEntityNamesMappingCache(array $entityNamesMappingCache)
+    {
         $this->entityNamesMappingCache = $entityNamesMappingCache;
     }
 
@@ -44,11 +46,12 @@ class EntityUtilsTest extends TestCase
 {
     private EntityManagerInterface $entityManager;
 
-    public function setUp(): void {
+    public function setUp(): void
+    {
         $this->entityManager = $this->getMockBuilder(EntityManagerInterface::class)->disableOriginalConstructor()->getMock();
     }
 
-    protected function getEntityUtilsMockFor(string $method): MockObject | TestableEntityUtils
+    protected function getEntityUtilsMockFor(string $method): MockObject|TestableEntityUtils
     {
         return $this->getMockBuilder(TestableEntityUtils::class)
             ->setConstructorArgs([$this->entityManager])
@@ -113,7 +116,8 @@ class EntityUtilsTest extends TestCase
         $this->assertEquals($billingSetting, $entity->getBillingSetting());
     }
 
-    public function testGetEntityNameFromFullName(): void {
+    public function testGetEntityNameFromFullName(): void
+    {
         $utils = $this->getEntityUtilsMockFor('getEntityNameFromFullName');
 
         $this->assertEquals(
@@ -130,7 +134,8 @@ class EntityUtilsTest extends TestCase
         );
     }
 
-    public function testGetFullNameFromEntityName(): void {
+    public function testGetFullNameFromEntityName(): void
+    {
         $utils = $this->getEntityUtilsMockFor('getFullNameFromEntityName');
 
         $utils->setEntityNamesMappingCache(['File' => '\App\Entity\Core\File']);
@@ -143,7 +148,8 @@ class EntityUtilsTest extends TestCase
         );
     }
 
-    public function testGetFullNameFromEntityNameEmptyCache(): void {
+    public function testGetFullNameFromEntityNameEmptyCache(): void
+    {
         $utils = $this->getEntityUtilsMockFor('getFullNameFromEntityName');
 
         $utils->setEntityNamesMappingCache([]);
@@ -152,7 +158,8 @@ class EntityUtilsTest extends TestCase
             ->expects(self::once())
             ->method('populateEntityNamesMappingCache')
             ->willReturnCallback(function () use ($utils) {
-                $utils->setEntityNamesMappingCache(['File' => '\App\Entity\Core\File']);})
+                $utils->setEntityNamesMappingCache(['File' => '\App\Entity\Core\File']);
+            })
         ;
 
         $this->assertEquals(
@@ -161,7 +168,8 @@ class EntityUtilsTest extends TestCase
         );
     }
 
-    public function testGetFullNameFromEntityNameNonExistingEntity(): void {
+    public function testGetFullNameFromEntityNameNonExistingEntity(): void
+    {
         $utils = $this->getEntityUtilsMockFor('getFullNameFromEntityName');
 
         $utils->setEntityNamesMappingCache(['File' => '\App\Entity\Core\File']);
@@ -174,7 +182,8 @@ class EntityUtilsTest extends TestCase
         $utils->getFullNameFromEntityName('Foo');
     }
 
-    public function testPopulateEntityNamesMappingCache(): void {
+    public function testPopulateEntityNamesMappingCache(): void
+    {
         $utils = $this->getEntityUtilsMockFor('populateEntityNamesMappingCache');
 
         $metadataFactory = $this->getMockBuilder(ClassMetadataFactory::class)->getMock();
@@ -222,7 +231,8 @@ class EntityUtilsTest extends TestCase
         );
     }
 
-    public function testPopulateEntityNamesMappingCacheWithExistingCache(): void {
+    public function testPopulateEntityNamesMappingCacheWithExistingCache(): void
+    {
         $utils = $this->getEntityUtilsMockFor('populateEntityNamesMappingCache');
 
         $metadataFactory = $this->getMockBuilder(ClassMetadataFactory::class)->getMock();
@@ -248,7 +258,7 @@ class EntityUtilsTest extends TestCase
         $utils->setEntityNamesMappingCache(['OtherEntity' => '/Namespace/OtherEntity']);
 
         $this->assertEquals(
-            ['OtherEntity' => '/Namespace/OtherEntity',],
+            ['OtherEntity' => '/Namespace/OtherEntity'],
             $utils->getEntityNamesMappingCache()
         );
 
@@ -260,7 +270,8 @@ class EntityUtilsTest extends TestCase
         );
     }
 
-    public function testGetNamespaceFromName(): void {
+    public function testGetNamespaceFromName(): void
+    {
         $utils = $this->getEntityUtilsMockFor('getNamespaceFromName');
 
         $this->assertEquals(