Organization.php 64 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279
  1. <?php
  2. declare(strict_types=1);
  3. namespace App\Entity\Organization;
  4. use ApiPlatform\Metadata\ApiResource;
  5. use ApiPlatform\Metadata\Get;
  6. use App\Entity\Access\Access;
  7. use App\Entity\Billing\BillingExportSetting;
  8. use App\Entity\Billing\BillingSetting;
  9. use App\Entity\Billing\BillSchedule;
  10. use App\Entity\Billing\FamilyQuotientModel;
  11. use App\Entity\Booking\Attendance;
  12. use App\Entity\Booking\AttendanceBookingReason;
  13. use App\Entity\Booking\Course;
  14. use App\Entity\Booking\EducationalProject;
  15. use App\Entity\Booking\Event;
  16. use App\Entity\Booking\Examen;
  17. use App\Entity\Booking\OrganizationHoliday;
  18. use App\Entity\Core\BankAccount;
  19. use App\Entity\Core\ContactPoint;
  20. use App\Entity\Core\File;
  21. use App\Entity\Core\Notification;
  22. use App\Entity\Core\Tagg;
  23. use App\Entity\Core\Tips;
  24. use App\Entity\Donor\Donor;
  25. use App\Entity\Education\CriteriaNotation;
  26. use App\Entity\Education\Cycle;
  27. use App\Entity\Education\EducationCategory;
  28. use App\Entity\Education\EducationNotationConfig;
  29. use App\Entity\Education\EducationTiming;
  30. use App\Entity\Education\PeriodNotation;
  31. use App\Entity\Message\AbstractMessage;
  32. use App\Entity\Message\AbstractReport;
  33. use App\Entity\Message\Email;
  34. use App\Entity\Message\Mail;
  35. use App\Entity\Message\Sms;
  36. use App\Entity\Network\NetworkOrganization;
  37. use App\Entity\Person\Commission;
  38. use App\Entity\Place\Place;
  39. use App\Entity\Product\Equipment;
  40. use App\Entity\Product\Intangible;
  41. use App\Entity\Reward\Reward;
  42. use App\Entity\Shop\Orders;
  43. use App\Entity\Traits\CreatedOnAndByTrait;
  44. use App\Enum\Organization\CategoryEnum;
  45. use App\Enum\Organization\LegalEnum;
  46. use App\Enum\Organization\OpcaEnum;
  47. use App\Enum\Organization\PrincipalTypeEnum;
  48. use App\Enum\Organization\SchoolCategoryEnum;
  49. use App\Enum\Organization\TypeEstablishmentDetailEnum;
  50. use App\Enum\Organization\TypeEstablishmentEnum;
  51. use App\Repository\Organization\OrganizationRepository;
  52. // use DH\Auditor\Provider\Doctrine\Auditing\Annotation\Auditable;
  53. use Doctrine\Common\Collections\ArrayCollection;
  54. use Doctrine\Common\Collections\Collection;
  55. use Doctrine\ORM\Mapping as ORM;
  56. use JetBrains\PhpStorm\Pure;
  57. /**
  58. * Structure, organisation.
  59. *
  60. * Security :
  61. *
  62. * * @see \App\Doctrine\Organization\CurrentOrganizationExtension
  63. */
  64. #[ApiResource(
  65. operations: [
  66. new Get(security: 'object.getId() == user.getOrganization().getId()'),
  67. ]
  68. )]
  69. // #[Auditable]
  70. #[ORM\Entity(repositoryClass: OrganizationRepository::class)]
  71. class Organization
  72. {
  73. use CreatedOnAndByTrait;
  74. #[ORM\Id]
  75. #[ORM\Column]
  76. #[ORM\GeneratedValue]
  77. private ?int $id = null;
  78. #[ORM\Column(length: 128, nullable: false)]
  79. public string $name;
  80. #[ORM\Column(length: 128)]
  81. private string $identifier;
  82. #[ORM\Column(length: 50, nullable: true, enumType: LegalEnum::class)]
  83. private ?LegalEnum $legalStatus = null;
  84. #[ORM\Column(length: 255, nullable: false, enumType: PrincipalTypeEnum::class)]
  85. private PrincipalTypeEnum $principalType;
  86. #[ORM\OneToOne(mappedBy: 'organization', cascade: ['persist', 'remove'])]
  87. private ?Settings $settings = null;
  88. /** @var Collection<int, Access> */
  89. #[ORM\OneToMany(targetEntity: Access::class, mappedBy: 'organization', cascade: ['persist', 'remove'])]
  90. private Collection $accesses;
  91. /** @var Collection<int, NetworkOrganization> */
  92. #[ORM\OneToMany(targetEntity: NetworkOrganization::class, mappedBy: 'organization', cascade: ['persist', 'remove'], orphanRemoval: true)]
  93. private Collection $networkOrganizations;
  94. /** @var Collection<int, NetworkOrganization> */
  95. #[ORM\OneToMany(targetEntity: NetworkOrganization::class, mappedBy: 'parent', cascade: ['persist', 'remove'], orphanRemoval: true)]
  96. private Collection $networkOrganizationChildren;
  97. /** @var Collection<int, EducationNotationConfig> */
  98. #[ORM\OneToMany(targetEntity: EducationNotationConfig::class, mappedBy: 'organization', cascade: ['persist', 'remove'], orphanRemoval: true)]
  99. private Collection $educationNotationConfigs;
  100. #[ORM\OneToOne(targetEntity: Parameters::class, inversedBy: 'organization', cascade: ['persist'])]
  101. #[ORM\JoinColumn(nullable: false)]
  102. private Parameters $parameters;
  103. #[ORM\OneToOne(mappedBy: 'organization', cascade: ['persist', 'remove'], orphanRemoval: true)]
  104. private ?BillingSetting $billingSetting = null;
  105. #[ORM\Column(type: 'text', nullable: true)]
  106. private ?string $description = null;
  107. // TODO: utile ce champs? ou c'est juste un doublon du champs 'createDate'?
  108. #[ORM\Column(type: 'date', nullable: true)]
  109. private ?\DateTimeInterface $creationDate = null;
  110. #[ORM\Column(type: 'date', nullable: true)]
  111. private ?\DateTimeInterface $declarationDate = null;
  112. #[ORM\Column(length: 14, nullable: true)]
  113. private ?string $siretNumber = null;
  114. #[ORM\Column(length: 10, nullable: true)]
  115. private ?string $waldecNumber = null;
  116. #[ORM\Column(length: 255, nullable: true)]
  117. private ?string $volumeAndFolioNumber = null;
  118. #[ORM\Column(length: 5, nullable: true)]
  119. private ?string $apeNumber = null;
  120. #[ORM\Column(length: 50, nullable: true)]
  121. private ?string $tvaNumber = null;
  122. #[ORM\Column(length: 40, nullable: true)]
  123. private ?string $otherType = null;
  124. #[ORM\Column(length: 80, nullable: true)]
  125. private ?string $acronym = null;
  126. #[ORM\Column(length: 255, nullable: true)]
  127. private ?string $facebook = null;
  128. #[ORM\Column(length: 255, nullable: true)]
  129. private ?string $twitter = null;
  130. #[ORM\Column(length: 255, nullable: true)]
  131. private ?string $youtube = null;
  132. #[ORM\Column(length: 255, nullable: true)]
  133. private ?string $instagram = null;
  134. #[ORM\Column(length: 35, nullable: true)]
  135. private ?string $collectiveAgreement = null;
  136. #[ORM\Column(length: 50, nullable: true, enumType: OpcaEnum::class)]
  137. private ?OpcaEnum $opca = null;
  138. #[ORM\Column(length: 35, nullable: true)]
  139. private ?string $icomNumber = null;
  140. #[ORM\Column(length: 35, nullable: true)]
  141. private ?string $urssafNumber = null;
  142. #[ORM\Column(length: 20, nullable: true)]
  143. private ?string $youngApproval = null;
  144. #[ORM\Column(length: 20, nullable: true)]
  145. private ?string $trainingApproval = null;
  146. #[ORM\Column(length: 50, nullable: true)]
  147. private ?string $otherApproval = null;
  148. #[ORM\Column(length: 35, nullable: true)]
  149. private ?string $prefectureName = null;
  150. #[ORM\Column(length: 20, nullable: true)]
  151. private ?string $prefectureNumber = null;
  152. #[ORM\Column(length: 50, nullable: true, enumType: CategoryEnum::class)]
  153. private ?CategoryEnum $category = null;
  154. #[ORM\Column(length: 50, nullable: true, enumType: SchoolCategoryEnum::class)]
  155. private ?SchoolCategoryEnum $schoolCategory = null;
  156. #[ORM\Column(length: 50, nullable: true, enumType: TypeEstablishmentEnum::class)]
  157. private ?TypeEstablishmentEnum $typeEstablishment = null;
  158. #[ORM\Column(length: 50, nullable: true, enumType: TypeEstablishmentDetailEnum::class)]
  159. private ?TypeEstablishmentDetailEnum $typeEstablishmentDetail = null;
  160. #[ORM\Column(nullable: true)]
  161. private ?float $budget = null;
  162. #[ORM\Column(nullable: true)]
  163. private ?bool $isPedagogicIsPrincipalActivity = null;
  164. #[ORM\Column(nullable: true)]
  165. private ?float $pedagogicBudget = null;
  166. #[ORM\Column(nullable: true)]
  167. private ?bool $isPerformanceContractor = null;
  168. #[ORM\Column(length: 20, nullable: true)]
  169. private ?string $ffecApproval = null;
  170. #[ORM\Column]
  171. private bool $portailVisibility = true;
  172. #[ORM\Column(nullable: true)]
  173. private ?int $cmsId = null;
  174. #[ORM\ManyToOne(inversedBy: 'organizationLogos')]
  175. #[ORM\JoinColumn(referencedColumnName: 'id', nullable: true, onDelete: 'SET NULL')]
  176. private ?File $logo = null;
  177. #[ORM\ManyToOne(inversedBy: 'organizationImages')]
  178. #[ORM\JoinColumn(referencedColumnName: 'id', nullable: true, onDelete: 'SET NULL')]
  179. private ?File $image = null;
  180. /** @var Collection<int, TypeOfPractice> */
  181. #[ORM\ManyToMany(targetEntity: TypeOfPractice::class, mappedBy: 'organizations')]
  182. private Collection $typeOfPractices;
  183. #[ORM\Column(nullable: true)]
  184. private ?string $otherPractice = null;
  185. /**
  186. * orphanRemoval: on ne conserve pas un contact point qui n'est plus lié à aucune organisation ou person
  187. * @var Collection<int, ContactPoint>
  188. */
  189. #[ORM\ManyToMany(targetEntity: ContactPoint::class, mappedBy: 'organization', cascade: ['persist'], orphanRemoval: true)]
  190. private Collection $contactPoints;
  191. /**
  192. * orphanRemoval: on ne conserve pas un contact point qui n'est plus lié à aucune organisation ou person
  193. * @var Collection<int, BankAccount>
  194. */
  195. #[ORM\ManyToMany(targetEntity: BankAccount::class, inversedBy: 'organization', cascade: ['persist'], orphanRemoval: true)]
  196. #[ORM\JoinColumn(name: 'organization_id', referencedColumnName: 'id', unique: true)]
  197. #[ORM\InverseJoinColumn(name: 'bankAccount_id', referencedColumnName: 'id')]
  198. private Collection $bankAccounts;
  199. /** @var Collection<int, OrganizationAddressPostal> */
  200. #[ORM\OneToMany(mappedBy: 'organization', targetEntity: OrganizationAddressPostal::class, cascade: ['persist', 'remove'])]
  201. private Collection $organizationAddressPostals;
  202. /** @var Collection<int, OrganizationLicence> */
  203. #[ORM\OneToMany(mappedBy: 'organization', targetEntity: OrganizationLicence::class, cascade: ['persist', 'remove'])]
  204. private Collection $organizationLicences;
  205. /** @var Collection<int, OrganizationArticle> */
  206. #[ORM\OneToMany(mappedBy: 'organization', targetEntity: OrganizationArticle::class, cascade: ['persist', 'remove'])]
  207. private Collection $organizationArticles;
  208. /** @var Collection<int, Cycle> */
  209. #[ORM\OneToMany(mappedBy: 'organization', targetEntity: Cycle::class, cascade: ['persist', 'remove'])]
  210. private Collection $cycles;
  211. /** @var Collection<int, EducationTiming> */
  212. #[ORM\OneToMany(mappedBy: 'organization', targetEntity: EducationTiming::class, cascade: ['persist', 'remove'])]
  213. private Collection $educationTimings;
  214. /** @var Collection<int, Subdomain> */
  215. #[ORM\OneToMany(mappedBy: 'organization', targetEntity: Subdomain::class, cascade: ['persist', 'remove'])]
  216. private Collection $subdomains;
  217. #[ORM\ManyToOne(inversedBy: 'organizationContacts')]
  218. #[ORM\JoinColumn(referencedColumnName: 'id', nullable: true, onDelete: 'SET NULL')]
  219. private ?Access $contactPerson;
  220. /** @var Collection<int, OrganizationHoliday> */
  221. #[ORM\OneToMany(mappedBy: 'organization', targetEntity: OrganizationHoliday::class, cascade: ['persist', 'remove'])]
  222. private Collection $holidays;
  223. /** @var Collection<int, Course> */
  224. #[ORM\OneToMany(mappedBy: 'organization', targetEntity: Course::class, cascade: ['persist', 'remove'])]
  225. private Collection $courses;
  226. /** @var Collection<int, EducationalProject> */
  227. #[ORM\OneToMany(mappedBy: 'organization', targetEntity: EducationalProject::class, cascade: ['persist', 'remove'])]
  228. private Collection $educationalProjects;
  229. /** @var Collection<int, Event> */
  230. #[ORM\OneToMany(mappedBy: 'organization', targetEntity: Event::class, cascade: ['persist', 'remove'])]
  231. private Collection $events;
  232. /** @var Collection<int, Examen> */
  233. #[ORM\OneToMany(mappedBy: 'organization', targetEntity: Examen::class, cascade: ['persist', 'remove'])]
  234. private Collection $examens;
  235. /** @var Collection<int, CriteriaNotation> */
  236. #[ORM\OneToMany(mappedBy: 'organization', targetEntity: CriteriaNotation::class, cascade: ['persist', 'remove'])]
  237. private Collection $critereNotations;
  238. /** @var Collection<int, EducationCategory> */
  239. #[ORM\OneToMany(mappedBy: 'organization', targetEntity: EducationCategory::class, cascade: ['persist', 'remove'])]
  240. private Collection $educationCategories;
  241. /** @var Collection<int, PeriodNotation> */
  242. #[ORM\OneToMany(mappedBy: 'organization', targetEntity: PeriodNotation::class, cascade: ['persist', 'remove'])]
  243. private Collection $periodNotations;
  244. /** @var Collection<int, File> */
  245. #[ORM\OneToMany(mappedBy: 'organization', targetEntity: File::class, cascade: ['persist', 'remove'])]
  246. private Collection $files;
  247. /** @var Collection<int, Notification> */
  248. #[ORM\OneToMany(mappedBy: 'recipientOrganization', targetEntity: Notification::class, cascade: ['persist', 'remove'])]
  249. private Collection $notifications;
  250. /** @var Collection<int, Email> */
  251. #[ORM\OneToMany(mappedBy: 'organization', targetEntity: Email::class, cascade: ['persist', 'remove'])]
  252. private Collection $emails;
  253. /** @var Collection<int, Mail> */
  254. #[ORM\OneToMany(mappedBy: 'organization', targetEntity: Mail::class, cascade: ['persist', 'remove'])]
  255. private Collection $mails;
  256. /** @var Collection<int, Sms> */
  257. #[ORM\OneToMany(mappedBy: 'organization', targetEntity: Sms::class, cascade: ['persist', 'remove'])]
  258. private Collection $sms;
  259. /** @var Collection<int, Activity> */
  260. #[ORM\OneToMany(mappedBy: 'organization', targetEntity: Activity::class, cascade: ['persist', 'remove'])]
  261. private Collection $activities;
  262. /** @var Collection<int, Jury> */
  263. #[ORM\OneToMany(mappedBy: 'organization', targetEntity: Jury::class, cascade: ['persist', 'remove'])]
  264. private Collection $juries;
  265. /** @var Collection<int, Commission> */
  266. #[ORM\OneToMany(mappedBy: 'organization', targetEntity: Commission::class, cascade: ['persist', 'remove'])]
  267. private Collection $commissions;
  268. /** @var Collection<int, Place> */
  269. #[ORM\OneToMany(mappedBy: 'organization', targetEntity: Place::class, cascade: ['persist', 'remove'])]
  270. private Collection $places;
  271. /** @var Collection<int, Attendance> */
  272. #[ORM\OneToMany(mappedBy: 'organization', targetEntity: Attendance::class, cascade: ['persist', 'remove'])]
  273. private Collection $attendances;
  274. /** @var Collection<int, Equipment> */
  275. #[ORM\OneToMany(mappedBy: 'organization', targetEntity: Equipment::class, cascade: ['persist', 'remove'])]
  276. private Collection $equipments;
  277. /** @var Collection<int, Intangible> */
  278. #[ORM\OneToMany(targetEntity: Intangible::class, mappedBy: 'organization', cascade: ['persist', 'remove'])]
  279. private Collection $intangibles;
  280. /** @var Collection<int, Donor> */
  281. #[ORM\OneToMany(targetEntity: Donor::class, mappedBy: 'organization', cascade: ['persist', 'remove'])]
  282. private Collection $donors;
  283. /** @var Collection<int, Reward> */
  284. #[ORM\OneToMany(targetEntity: Reward::class, mappedBy: 'organization', cascade: ['persist', 'remove'])]
  285. private Collection $rewards;
  286. // #[ORM\OneToOne()]
  287. // private OnlineRegistrationSettings $onlineRegistrationSettings;
  288. /** @var Collection<int, Tagg> */
  289. #[ORM\OneToMany(targetEntity: Tagg::class, mappedBy: 'organization', cascade: ['persist', 'remove'])]
  290. private Collection $ownedTags;
  291. /** @var Collection<int, Tagg> */
  292. #[ORM\ManyToMany(targetEntity: Tagg::class, inversedBy: 'organizations', cascade: ['persist'])]
  293. #[ORM\JoinTable(name: 'tag_organization')]
  294. #[ORM\JoinColumn(name: 'organization_id', referencedColumnName: 'id')]
  295. #[ORM\InverseJoinColumn(name: 'tag_id', referencedColumnName: 'id')]
  296. private Collection $tags;
  297. /** @var Collection<int, NetworkOrganization> */
  298. #[ORM\OneToMany(targetEntity: NetworkOrganization::class, mappedBy: 'organization', cascade: ['persist', 'remove'])]
  299. protected Collection $network;
  300. /** @var Collection<int, NetworkOrganization> */
  301. #[ORM\OneToMany(targetEntity: NetworkOrganization::class, mappedBy: 'parent', cascade: ['persist', 'remove'])]
  302. protected Collection $networkChild;
  303. #[ORM\OneToOne(targetEntity: BillingExportSetting::class, mappedBy: 'organization', cascade: ['persist', 'remove'])]
  304. protected ?BillingExportSetting $billingExportSetting;
  305. /** @var Collection<int, Access> */
  306. #[ORM\OneToMany(targetEntity: Access::class, mappedBy: 'organization', cascade: ['persist', 'remove'])]
  307. protected Collection $access;
  308. /** @var Collection<int, AbstractMessage> */
  309. #[ORM\OneToMany(targetEntity: AbstractMessage::class, mappedBy: 'organization', cascade: ['persist', 'remove'])]
  310. protected Collection $messages;
  311. #[ORM\OneToOne(targetEntity: OnlineRegistrationSettings::class, mappedBy: 'organization', cascade: ['persist', 'remove'])]
  312. protected ?OnlineRegistrationSettings $onlineRegistrationSettings;
  313. /** @var Collection<int, CotisationByYear> */
  314. #[ORM\OneToMany(targetEntity: CotisationByYear::class, mappedBy: 'organization', cascade: ['persist', 'remove'])]
  315. protected Collection $cotisationByYears;
  316. /** @var Collection<int, AttendanceBookingReason> */
  317. #[ORM\OneToMany(targetEntity: AttendanceBookingReason::class, mappedBy: 'organization', cascade: ['persist', 'remove'])]
  318. protected Collection $attendanceBookingReasons;
  319. /** @var Collection<int, Cycle> */
  320. #[ORM\OneToMany(targetEntity: Cycle::class, mappedBy: 'organization', cascade: ['persist', 'remove'])]
  321. protected Collection $educationCurriculumPacks;
  322. /** @var Collection<int, FamilyQuotientModel> */
  323. #[ORM\OneToMany(targetEntity: FamilyQuotientModel::class, mappedBy: 'organization', cascade: ['persist', 'remove'])]
  324. protected Collection $familyQuotientModels;
  325. /** @var Collection<int, BillSchedule> */
  326. #[ORM\OneToMany(targetEntity: BillSchedule::class, mappedBy: 'organization', cascade: ['persist', 'remove'])]
  327. protected Collection $billSchedules;
  328. /** @var Collection<int, AbstractReport> */
  329. #[ORM\OneToMany(targetEntity: AbstractReport::class, mappedBy: 'organization', cascade: ['persist', 'remove'])]
  330. private Collection $reports;
  331. /** @var Collection<int, Orders> */
  332. #[ORM\OneToMany(targetEntity: Orders::class, mappedBy: 'organization', cascade: [], orphanRemoval: true)]
  333. protected Collection $orders;
  334. /**
  335. * orphanRemoval: on ne conserve pas un tips qui n'est plus lié à aucune organisation ou access
  336. * @var Collection<int, Tips>
  337. */
  338. #[ORM\ManyToMany(targetEntity: Tips::class, inversedBy: 'organizations', cascade: ['persist'], orphanRemoval: false)]
  339. #[ORM\JoinTable(name: 'organization_tips')]
  340. #[ORM\JoinColumn(name: 'organization_id')]
  341. protected Collection $tips;
  342. #[Pure]
  343. public function __construct()
  344. {
  345. $this->accesses = new ArrayCollection();
  346. $this->networkOrganizations = new ArrayCollection();
  347. $this->networkOrganizationChildren = new ArrayCollection();
  348. $this->typeOfPractices = new ArrayCollection();
  349. $this->contactPoints = new ArrayCollection();
  350. $this->bankAccounts = new ArrayCollection();
  351. $this->organizationAddressPostals = new ArrayCollection();
  352. $this->organizationLicences = new ArrayCollection();
  353. $this->organizationArticles = new ArrayCollection();
  354. $this->cycles = new ArrayCollection();
  355. $this->educationTimings = new ArrayCollection();
  356. $this->educationNotationConfigs = new ArrayCollection();
  357. $this->subdomains = new ArrayCollection();
  358. $this->holidays = new ArrayCollection();
  359. $this->courses = new ArrayCollection();
  360. $this->educationalProjects = new ArrayCollection();
  361. $this->events = new ArrayCollection();
  362. $this->examens = new ArrayCollection();
  363. $this->critereNotations = new ArrayCollection();
  364. $this->educationCategories = new ArrayCollection();
  365. $this->periodNotations = new ArrayCollection();
  366. $this->files = new ArrayCollection();
  367. $this->notifications = new ArrayCollection();
  368. $this->emails = new ArrayCollection();
  369. $this->mails = new ArrayCollection();
  370. $this->sms = new ArrayCollection();
  371. $this->activities = new ArrayCollection();
  372. $this->juries = new ArrayCollection();
  373. $this->commissions = new ArrayCollection();
  374. $this->places = new ArrayCollection();
  375. $this->attendances = new ArrayCollection();
  376. $this->equipments = new ArrayCollection();
  377. $this->intangibles = new ArrayCollection();
  378. $this->donors = new ArrayCollection();
  379. $this->tags = new ArrayCollection();
  380. $this->rewards = new ArrayCollection();
  381. $this->network = new ArrayCollection();
  382. $this->networkChild = new ArrayCollection();
  383. $this->access = new ArrayCollection();
  384. $this->messages = new ArrayCollection();
  385. $this->cotisationByYears = new ArrayCollection();
  386. $this->attendanceBookingReasons = new ArrayCollection();
  387. $this->educationCurriculumPacks = new ArrayCollection();
  388. $this->familyQuotientModels = new ArrayCollection();
  389. $this->billSchedules = new ArrayCollection();
  390. $this->orders = new ArrayCollection();
  391. $this->tips = new ArrayCollection();
  392. }
  393. public function getId(): ?int
  394. {
  395. return $this->id;
  396. }
  397. public function getName(): string
  398. {
  399. return $this->name;
  400. }
  401. public function setName(string $name): self
  402. {
  403. $this->name = $name;
  404. return $this;
  405. }
  406. public function getIdentifier(): string
  407. {
  408. return $this->identifier;
  409. }
  410. public function setIdentifier(string $identifier): self
  411. {
  412. $this->identifier = $identifier;
  413. return $this;
  414. }
  415. public function getLegalStatus(): ?LegalEnum
  416. {
  417. return $this->legalStatus;
  418. }
  419. public function setLegalStatus(?LegalEnum $legalStatus): self
  420. {
  421. $this->legalStatus = $legalStatus;
  422. return $this;
  423. }
  424. public function getPrincipalType(): ?PrincipalTypeEnum
  425. {
  426. return $this->principalType;
  427. }
  428. public function setPrincipalType(?PrincipalTypeEnum $principalType): self
  429. {
  430. $this->principalType = $principalType;
  431. return $this;
  432. }
  433. public function getSettings(): Settings
  434. {
  435. return $this->settings;
  436. }
  437. public function setSettings(Settings $settings): self
  438. {
  439. $this->settings = $settings;
  440. // set the owning side of the relation
  441. $settings->setOrganization($this);
  442. return $this;
  443. }
  444. public function getAccesses(): Collection
  445. {
  446. return $this->accesses;
  447. }
  448. public function addAccess(Access $access): self
  449. {
  450. if (!$this->access->contains($access)) {
  451. $this->access[] = $access;
  452. $access->setOrganization($this);
  453. }
  454. return $this;
  455. }
  456. public function removeAccess(Access $access): self
  457. {
  458. if ($this->access->removeElement($access)) {
  459. $access->setOrganization(null);
  460. }
  461. return $this;
  462. }
  463. public function getNetworkOrganizations(): Collection
  464. {
  465. return $this->networkOrganizations;
  466. }
  467. public function addNetworkOrganization(NetworkOrganization $networkOrganization): self
  468. {
  469. if (!$this->networkOrganizations->contains($networkOrganization)) {
  470. $this->networkOrganizations[] = $networkOrganization;
  471. $networkOrganization->setOrganization($this);
  472. }
  473. return $this;
  474. }
  475. public function removeNetworkOrganization(NetworkOrganization $networkOrganization): self
  476. {
  477. if ($this->networkOrganizations->removeElement($networkOrganization)) {
  478. // set the owning side to null (unless already changed)
  479. if ($networkOrganization->getOrganization() === $this) {
  480. $networkOrganization->setOrganization(null);
  481. }
  482. }
  483. return $this;
  484. }
  485. public function getNetworkOrganizationChildren(): Collection
  486. {
  487. return $this->networkOrganizationChildren;
  488. }
  489. public function addNetworkOrganizationChild(NetworkOrganization $networkOrganizationChild): self
  490. {
  491. if (!$this->networkOrganizationChildren->contains($networkOrganizationChild)) {
  492. $this->networkOrganizationChildren[] = $networkOrganizationChild;
  493. $networkOrganizationChild->setParent($this);
  494. }
  495. return $this;
  496. }
  497. public function removeNetworkOrganizationChild(NetworkOrganization $networkOrganizationChild): self
  498. {
  499. if ($this->networkOrganizationChildren->removeElement($networkOrganizationChild)) {
  500. // set the owning side to null (unless already changed)
  501. if ($networkOrganizationChild->getParent() === $this) {
  502. $networkOrganizationChild->setParent(null);
  503. }
  504. }
  505. return $this;
  506. }
  507. public function getParameters(): Parameters
  508. {
  509. return $this->parameters;
  510. }
  511. public function setParameters(Parameters $parameters): self
  512. {
  513. $this->parameters = $parameters;
  514. return $this;
  515. }
  516. public function getLogo(): ?File
  517. {
  518. return $this->logo;
  519. }
  520. public function setLogo(?File $logo): void
  521. {
  522. $this->logo = $logo;
  523. }
  524. public function getBillingSetting(): BillingSetting
  525. {
  526. return $this->billingSetting;
  527. }
  528. public function setBillingSetting(BillingSetting $billingSetting): self
  529. {
  530. $this->billingSetting = $billingSetting;
  531. return $this;
  532. }
  533. public function getDescription(): ?string
  534. {
  535. return $this->description;
  536. }
  537. public function setDescription(?string $description): self
  538. {
  539. $this->description = $description;
  540. return $this;
  541. }
  542. public function getCreationDate(): ?\DateTimeInterface
  543. {
  544. return $this->creationDate;
  545. }
  546. public function setCreationDate(?\DateTimeInterface $creationDate): self
  547. {
  548. $this->creationDate = $creationDate;
  549. return $this;
  550. }
  551. public function getDeclarationDate(): ?\DateTimeInterface
  552. {
  553. return $this->declarationDate;
  554. }
  555. public function setDeclarationDate(?\DateTimeInterface $declarationDate): self
  556. {
  557. $this->declarationDate = $declarationDate;
  558. return $this;
  559. }
  560. public function getSiretNumber(): ?string
  561. {
  562. return $this->siretNumber;
  563. }
  564. public function setSiretNumber(?string $siretNumber): self
  565. {
  566. $this->siretNumber = $siretNumber;
  567. return $this;
  568. }
  569. public function getWaldecNumber(): ?string
  570. {
  571. return $this->waldecNumber;
  572. }
  573. public function setWaldecNumber(?string $waldecNumber): self
  574. {
  575. $this->waldecNumber = $waldecNumber;
  576. return $this;
  577. }
  578. public function getVolumeAndFolioNumber(): ?string
  579. {
  580. return $this->volumeAndFolioNumber;
  581. }
  582. public function setVolumeAndFolioNumber(?string $volumeAndFolioNumber): self
  583. {
  584. $this->volumeAndFolioNumber = $volumeAndFolioNumber;
  585. return $this;
  586. }
  587. public function getApeNumber(): ?string
  588. {
  589. return $this->apeNumber;
  590. }
  591. public function setApeNumber(?string $apeNumber): self
  592. {
  593. $this->apeNumber = $apeNumber;
  594. return $this;
  595. }
  596. public function getTvaNumber(): ?string
  597. {
  598. return $this->tvaNumber;
  599. }
  600. public function setTvaNumber(?string $tvaNumber): self
  601. {
  602. $this->tvaNumber = $tvaNumber;
  603. return $this;
  604. }
  605. public function getOtherType(): ?string
  606. {
  607. return $this->otherType;
  608. }
  609. public function setOtherType(?string $otherType): self
  610. {
  611. $this->otherType = $otherType;
  612. return $this;
  613. }
  614. public function getAcronym(): ?string
  615. {
  616. return $this->acronym;
  617. }
  618. public function setAcronym(?string $acronym): self
  619. {
  620. $this->acronym = $acronym;
  621. return $this;
  622. }
  623. public function getFacebook(): ?string
  624. {
  625. return $this->facebook;
  626. }
  627. public function setFacebook(?string $facebook): self
  628. {
  629. $this->facebook = $facebook;
  630. return $this;
  631. }
  632. public function getTwitter(): ?string
  633. {
  634. return $this->twitter;
  635. }
  636. public function setTwitter(?string $twitter): self
  637. {
  638. $this->twitter = $twitter;
  639. return $this;
  640. }
  641. public function getYoutube(): ?string
  642. {
  643. return $this->youtube;
  644. }
  645. public function setYoutube(?string $youtube): self
  646. {
  647. $this->youtube = $youtube;
  648. return $this;
  649. }
  650. public function getInstagram(): ?string
  651. {
  652. return $this->instagram;
  653. }
  654. public function setInstagram(?string $instagram): self
  655. {
  656. $this->instagram = $instagram;
  657. return $this;
  658. }
  659. public function getCollectiveAgreement(): ?string
  660. {
  661. return $this->collectiveAgreement;
  662. }
  663. public function setCollectiveAgreement(?string $collectiveAgreement): self
  664. {
  665. $this->collectiveAgreement = $collectiveAgreement;
  666. return $this;
  667. }
  668. public function getOpca(): ?OpcaEnum
  669. {
  670. return $this->opca;
  671. }
  672. public function setOpca(?OpcaEnum $opca): self
  673. {
  674. $this->opca = $opca;
  675. return $this;
  676. }
  677. public function getIcomNumber(): ?string
  678. {
  679. return $this->icomNumber;
  680. }
  681. public function setIcomNumber(?string $icomNumber): self
  682. {
  683. $this->icomNumber = $icomNumber;
  684. return $this;
  685. }
  686. public function getUrssafNumber(): ?string
  687. {
  688. return $this->urssafNumber;
  689. }
  690. public function setUrssafNumber(?string $urssafNumber): self
  691. {
  692. $this->urssafNumber = $urssafNumber;
  693. return $this;
  694. }
  695. public function getYoungApproval(): ?string
  696. {
  697. return $this->youngApproval;
  698. }
  699. public function setYoungApproval(?string $youngApproval): self
  700. {
  701. $this->youngApproval = $youngApproval;
  702. return $this;
  703. }
  704. public function getTrainingApproval(): ?string
  705. {
  706. return $this->trainingApproval;
  707. }
  708. public function setTrainingApproval(?string $trainingApproval): self
  709. {
  710. $this->trainingApproval = $trainingApproval;
  711. return $this;
  712. }
  713. public function getOtherApproval(): ?string
  714. {
  715. return $this->otherApproval;
  716. }
  717. public function setOtherApproval(?string $otherApproval): self
  718. {
  719. $this->otherApproval = $otherApproval;
  720. return $this;
  721. }
  722. public function getPrefectureName(): ?string
  723. {
  724. return $this->prefectureName;
  725. }
  726. public function setPrefectureName(?string $prefectureName): self
  727. {
  728. $this->prefectureName = $prefectureName;
  729. return $this;
  730. }
  731. public function getPrefectureNumber(): ?string
  732. {
  733. return $this->prefectureNumber;
  734. }
  735. public function setPrefectureNumber(?string $prefectureNumber): self
  736. {
  737. $this->prefectureNumber = $prefectureNumber;
  738. return $this;
  739. }
  740. public function getCategory(): ?CategoryEnum
  741. {
  742. return $this->category;
  743. }
  744. public function setCategory(?CategoryEnum $category): self
  745. {
  746. $this->category = $category;
  747. return $this;
  748. }
  749. public function getSchoolCategory(): ?SchoolCategoryEnum
  750. {
  751. return $this->schoolCategory;
  752. }
  753. public function setSchoolCategory(?SchoolCategoryEnum $schoolCategory): self
  754. {
  755. $this->schoolCategory = $schoolCategory;
  756. return $this;
  757. }
  758. public function getTypeEstablishment(): ?TypeEstablishmentEnum
  759. {
  760. return $this->typeEstablishment;
  761. }
  762. public function setTypeEstablishment(?TypeEstablishmentEnum $typeEstablishment): self
  763. {
  764. $this->typeEstablishment = $typeEstablishment;
  765. return $this;
  766. }
  767. public function getTypeEstablishmentDetail(): ?TypeEstablishmentDetailEnum
  768. {
  769. return $this->typeEstablishmentDetail;
  770. }
  771. public function setTypeEstablishmentDetail(?TypeEstablishmentDetailEnum $typeEstablishmentDetail): self
  772. {
  773. $this->typeEstablishmentDetail = $typeEstablishmentDetail;
  774. return $this;
  775. }
  776. public function getBudget(): ?float
  777. {
  778. return $this->budget;
  779. }
  780. public function setBudget(?float $budget): self
  781. {
  782. $this->budget = $budget;
  783. return $this;
  784. }
  785. public function getIsPedagogicIsPrincipalActivity(): ?bool
  786. {
  787. return $this->isPedagogicIsPrincipalActivity;
  788. }
  789. public function setIsPedagogicIsPrincipalActivity(?bool $isPedagogicIsPrincipalActivity): self
  790. {
  791. $this->isPedagogicIsPrincipalActivity = $isPedagogicIsPrincipalActivity;
  792. return $this;
  793. }
  794. public function getPedagogicBudget(): ?float
  795. {
  796. return $this->pedagogicBudget;
  797. }
  798. public function setPedagogicBudget(?float $pedagogicBudget): self
  799. {
  800. $this->pedagogicBudget = $pedagogicBudget;
  801. return $this;
  802. }
  803. public function getIsPerformanceContractor(): ?bool
  804. {
  805. return $this->isPerformanceContractor;
  806. }
  807. public function setIsPerformanceContractor(?bool $isPerformanceContractor): self
  808. {
  809. $this->isPerformanceContractor = $isPerformanceContractor;
  810. return $this;
  811. }
  812. public function getFfecApproval(): ?string
  813. {
  814. return $this->ffecApproval;
  815. }
  816. public function setFfecApproval(?string $ffecApproval): self
  817. {
  818. $this->ffecApproval = $ffecApproval;
  819. return $this;
  820. }
  821. public function getPortailVisibility(): bool
  822. {
  823. return $this->portailVisibility;
  824. }
  825. public function setPortailVisibility(bool $portailVisibility): self
  826. {
  827. $this->portailVisibility = $portailVisibility;
  828. return $this;
  829. }
  830. public function getCmsId(): ?int
  831. {
  832. return $this->cmsId;
  833. }
  834. public function setCmsId(?int $cmsId): self
  835. {
  836. $this->cmsId = $cmsId;
  837. return $this;
  838. }
  839. public function setImage(?File $image): self
  840. {
  841. $this->image = $image;
  842. return $this;
  843. }
  844. public function getImage(): ?File
  845. {
  846. return $this->image;
  847. }
  848. public function getTypeOfPractices(): Collection
  849. {
  850. return $this->typeOfPractices;
  851. }
  852. public function addTypeOfPractice(TypeOfPractice $typeOfPractice): self
  853. {
  854. if (!$this->typeOfPractices->contains($typeOfPractice)) {
  855. $this->typeOfPractices[] = $typeOfPractice;
  856. $typeOfPractice->addOrganization($this);
  857. }
  858. return $this;
  859. }
  860. public function removeTypeOfPractice(TypeOfPractice $typeOfPractice): self
  861. {
  862. if ($this->typeOfPractices->removeElement($typeOfPractice)) {
  863. $typeOfPractice->removeOrganization($this);
  864. }
  865. return $this;
  866. }
  867. public function getOtherPractice(): ?string
  868. {
  869. return $this->otherPractice;
  870. }
  871. public function setOtherPractice(?string $otherPractice): self
  872. {
  873. $this->otherPractice = $otherPractice;
  874. return $this;
  875. }
  876. public function getContactPoints(): Collection
  877. {
  878. return $this->contactPoints;
  879. }
  880. public function addContactPoint(ContactPoint $contactPoint): self
  881. {
  882. if (!$this->contactPoints->contains($contactPoint)) {
  883. $this->contactPoints[] = $contactPoint;
  884. $contactPoint->addOrganization($this);
  885. }
  886. return $this;
  887. }
  888. public function removeContactPoint(ContactPoint $contactPoint): self
  889. {
  890. if ($this->contactPoints->removeElement($contactPoint)) {
  891. $contactPoint->removeOrganization($this);
  892. }
  893. return $this;
  894. }
  895. public function getBankAccounts(): Collection
  896. {
  897. return $this->bankAccounts;
  898. }
  899. public function addBankAccount(BankAccount $bankAccount): self
  900. {
  901. if (!$this->bankAccounts->contains($bankAccount)) {
  902. $this->bankAccounts[] = $bankAccount;
  903. $bankAccount->addOrganization($this);
  904. }
  905. return $this;
  906. }
  907. public function removeBankAccount(BankAccount $bankAccount): self
  908. {
  909. if ($this->bankAccounts->removeElement($bankAccount)) {
  910. $bankAccount->removeOrganization($this);
  911. }
  912. return $this;
  913. }
  914. public function getOrganizationAddressPostals(): Collection
  915. {
  916. return $this->organizationAddressPostals;
  917. }
  918. public function addOrganizationAddressPostal(OrganizationAddressPostal $organizationAddressPostal): self
  919. {
  920. if (!$this->organizationAddressPostals->contains($organizationAddressPostal)) {
  921. $this->organizationAddressPostals[] = $organizationAddressPostal;
  922. $organizationAddressPostal->setOrganization($this);
  923. }
  924. return $this;
  925. }
  926. public function removeOrganizationAddressPostal(OrganizationAddressPostal $organizationAddressPostal): self
  927. {
  928. if ($this->organizationAddressPostals->removeElement($organizationAddressPostal)) {
  929. // set the owning side to null (unless already changed)
  930. if ($organizationAddressPostal->getOrganization() === $this) {
  931. $organizationAddressPostal->setOrganization(null);
  932. }
  933. }
  934. return $this;
  935. }
  936. public function getOrganizationLicences(): Collection
  937. {
  938. return $this->organizationLicences;
  939. }
  940. public function addOrganizationLicence(OrganizationLicence $organizationLicence): self
  941. {
  942. if (!$this->organizationLicences->contains($organizationLicence)) {
  943. $this->organizationLicences[] = $organizationLicence;
  944. $organizationLicence->setOrganization($this);
  945. }
  946. return $this;
  947. }
  948. public function removeOrganizationLicence(OrganizationLicence $organizationLicence): self
  949. {
  950. if ($this->organizationLicences->removeElement($organizationLicence)) {
  951. // set the owning side to null (unless already changed)
  952. if ($organizationLicence->getOrganization() === $this) {
  953. $organizationLicence->setOrganization(null);
  954. }
  955. }
  956. return $this;
  957. }
  958. public function getOrganizationArticles(): Collection
  959. {
  960. return $this->organizationArticles;
  961. }
  962. public function addOrganizationArticle(OrganizationArticle $organizationArticle): self
  963. {
  964. if (!$this->organizationArticles->contains($organizationArticle)) {
  965. $this->organizationArticles[] = $organizationArticle;
  966. $organizationArticle->setOrganization($this);
  967. }
  968. return $this;
  969. }
  970. public function removeOrganizationArticle(OrganizationArticle $organizationArticle): self
  971. {
  972. if ($this->organizationArticles->removeElement($organizationArticle)) {
  973. // set the owning side to null (unless already changed)
  974. if ($organizationArticle->getOrganization() === $this) {
  975. $organizationArticle->setOrganization(null);
  976. }
  977. }
  978. return $this;
  979. }
  980. public function addCycle(Cycle $cycle): self
  981. {
  982. if (!$this->cycles->contains($cycle)) {
  983. $this->cycles[] = $cycle;
  984. $cycle->setOrganization($this);
  985. }
  986. return $this;
  987. }
  988. public function removeCycle(Cycle $cycle): self
  989. {
  990. if ($this->cycles->removeElement($cycle)) {
  991. // set the owning side to null (unless already changed)
  992. if ($cycle->getOrganization() === $this) {
  993. $cycle->setOrganization(null);
  994. }
  995. }
  996. return $this;
  997. }
  998. public function getCycles(): Collection
  999. {
  1000. return $this->cycles;
  1001. }
  1002. public function addEducationNotationConfig(EducationNotationConfig $educationNotationConfig): self
  1003. {
  1004. if (!$this->educationNotationConfigs->contains($educationNotationConfig)) {
  1005. $this->educationNotationConfigs[] = $educationNotationConfig;
  1006. $educationNotationConfig->setOrganization($this);
  1007. }
  1008. return $this;
  1009. }
  1010. public function removeEducationNotationConfig(EducationNotationConfig $educationNotationConfig): self
  1011. {
  1012. if ($this->educationNotationConfigs->removeElement($educationNotationConfig)) {
  1013. // set the owning side to null (unless already changed)
  1014. if ($educationNotationConfig->getOrganization() === $this) {
  1015. $educationNotationConfig->setOrganization(null);
  1016. }
  1017. }
  1018. return $this;
  1019. }
  1020. public function getEducationNotationConfigs(): Collection
  1021. {
  1022. return $this->educationNotationConfigs;
  1023. }
  1024. public function addEducationTiming(EducationTiming $educationTiming): self
  1025. {
  1026. if (!$this->educationTimings->contains($educationTiming)) {
  1027. $this->educationTimings[] = $educationTiming;
  1028. $educationTiming->setOrganization($this);
  1029. }
  1030. return $this;
  1031. }
  1032. public function removeEducationTiming(EducationTiming $educationTiming): self
  1033. {
  1034. if ($this->educationTimings->removeElement($educationTiming)) {
  1035. // set the owning side to null (unless already changed)
  1036. if ($educationTiming->getOrganization() === $this) {
  1037. $educationTiming->setOrganization(null);
  1038. }
  1039. }
  1040. return $this;
  1041. }
  1042. public function getEducationTimings(): Collection
  1043. {
  1044. return $this->educationTimings;
  1045. }
  1046. public function getSubdomains(): Collection
  1047. {
  1048. return $this->subdomains;
  1049. }
  1050. public function addSubdomain(Subdomain $subdomain): self
  1051. {
  1052. if (!$this->subdomains->contains($subdomain)) {
  1053. $this->subdomains[] = $subdomain;
  1054. $subdomain->setOrganization($this);
  1055. }
  1056. return $this;
  1057. }
  1058. public function getContactPerson(): ?Access
  1059. {
  1060. return $this->contactPerson;
  1061. }
  1062. public function setContactPerson(?Access $contactPerson): self
  1063. {
  1064. $this->contactPerson = $contactPerson;
  1065. return $this;
  1066. }
  1067. /**
  1068. * @return Collection<int, OrganizationHoliday>
  1069. */
  1070. public function getHolidays(): Collection
  1071. {
  1072. return $this->holidays;
  1073. }
  1074. public function addHoliday(OrganizationHoliday $holiday): self
  1075. {
  1076. if (!$this->holidays->contains($holiday)) {
  1077. $this->holidays[] = $holiday;
  1078. $holiday->setOrganization($this);
  1079. }
  1080. return $this;
  1081. }
  1082. public function removeHoliday(OrganizationHoliday $holiday): self
  1083. {
  1084. if ($this->holidays->removeElement($holiday)) {
  1085. // set the owning side to null (unless already changed)
  1086. if ($holiday->getOrganization() === $this) {
  1087. $holiday->setOrganization(null);
  1088. }
  1089. }
  1090. return $this;
  1091. }
  1092. /**
  1093. * @return Collection<int, Course>
  1094. */
  1095. public function getCourses(): Collection
  1096. {
  1097. return $this->courses;
  1098. }
  1099. public function addCourse(Course $course): self
  1100. {
  1101. if (!$this->courses->contains($course)) {
  1102. $this->courses[] = $course;
  1103. $course->setOrganization($this);
  1104. }
  1105. return $this;
  1106. }
  1107. public function removeCourse(Course $course): self
  1108. {
  1109. if ($this->courses->removeElement($course)) {
  1110. // set the owning side to null (unless already changed)
  1111. if ($course->getOrganization() === $this) {
  1112. $course->setOrganization(null);
  1113. }
  1114. }
  1115. return $this;
  1116. }
  1117. /**
  1118. * @return Collection<int, EducationalProject>
  1119. */
  1120. public function getEducationalProjects(): Collection
  1121. {
  1122. return $this->educationalProjects;
  1123. }
  1124. public function addEducationalProject(EducationalProject $educationalProject): self
  1125. {
  1126. if (!$this->educationalProjects->contains($educationalProject)) {
  1127. $this->educationalProjects[] = $educationalProject;
  1128. $educationalProject->setOrganization($this);
  1129. }
  1130. return $this;
  1131. }
  1132. public function removeEducationalProject(EducationalProject $educationalProject): self
  1133. {
  1134. if ($this->educationalProjects->removeElement($educationalProject)) {
  1135. // set the owning side to null (unless already changed)
  1136. if ($educationalProject->getOrganization() === $this) {
  1137. $educationalProject->setOrganization(null);
  1138. }
  1139. }
  1140. return $this;
  1141. }
  1142. /**
  1143. * @return Collection<int, Event>
  1144. */
  1145. public function getEvents(): Collection
  1146. {
  1147. return $this->events;
  1148. }
  1149. public function addEvent(Event $event): self
  1150. {
  1151. if (!$this->events->contains($event)) {
  1152. $this->events[] = $event;
  1153. $event->setOrganization($this);
  1154. }
  1155. return $this;
  1156. }
  1157. public function removeEvent(Event $event): self
  1158. {
  1159. if ($this->events->removeElement($event)) {
  1160. // set the owning side to null (unless already changed)
  1161. if ($event->getOrganization() === $this) {
  1162. $event->setOrganization(null);
  1163. }
  1164. }
  1165. return $this;
  1166. }
  1167. /**
  1168. * @return Collection<int, Examen>
  1169. */
  1170. public function getExamens(): Collection
  1171. {
  1172. return $this->examens;
  1173. }
  1174. public function addExamen(Examen $examen): self
  1175. {
  1176. if (!$this->examens->contains($examen)) {
  1177. $this->examens[] = $examen;
  1178. $examen->setOrganization($this);
  1179. }
  1180. return $this;
  1181. }
  1182. public function removeExamen(Examen $examen): self
  1183. {
  1184. if ($this->examens->removeElement($examen)) {
  1185. // set the owning side to null (unless already changed)
  1186. if ($examen->getOrganization() === $this) {
  1187. $examen->setOrganization(null);
  1188. }
  1189. }
  1190. return $this;
  1191. }
  1192. /**
  1193. * @return Collection<int, CriteriaNotation>
  1194. */
  1195. public function getCritereNotations(): Collection
  1196. {
  1197. return $this->critereNotations;
  1198. }
  1199. public function addCritereNotation(CriteriaNotation $critereNotation): self
  1200. {
  1201. if (!$this->critereNotations->contains($critereNotation)) {
  1202. $this->critereNotations[] = $critereNotation;
  1203. $critereNotation->setOrganization($this);
  1204. }
  1205. return $this;
  1206. }
  1207. public function removeCritereNotation(CriteriaNotation $critereNotation): self
  1208. {
  1209. if ($this->critereNotations->removeElement($critereNotation)) {
  1210. // set the owning side to null (unless already changed)
  1211. if ($critereNotation->getOrganization() === $this) {
  1212. $critereNotation->setOrganization(null);
  1213. }
  1214. }
  1215. return $this;
  1216. }
  1217. /**
  1218. * @return Collection<int, EducationCategory>
  1219. */
  1220. public function getEducationCategories(): Collection
  1221. {
  1222. return $this->educationCategories;
  1223. }
  1224. public function addEducationCategory(EducationCategory $educationCategory): self
  1225. {
  1226. if (!$this->educationCategories->contains($educationCategory)) {
  1227. $this->educationCategories[] = $educationCategory;
  1228. $educationCategory->setOrganization($this);
  1229. }
  1230. return $this;
  1231. }
  1232. public function removeEducationCategory(EducationCategory $educationCategory): self
  1233. {
  1234. if ($this->educationCategories->removeElement($educationCategory)) {
  1235. // set the owning side to null (unless already changed)
  1236. if ($educationCategory->getOrganization() === $this) {
  1237. $educationCategory->setOrganization(null);
  1238. }
  1239. }
  1240. return $this;
  1241. }
  1242. /**
  1243. * @return Collection<int, PeriodNotation>
  1244. */
  1245. public function getPeriodNotations(): Collection
  1246. {
  1247. return $this->periodNotations;
  1248. }
  1249. public function addPeriodNotation(PeriodNotation $periodNotation): self
  1250. {
  1251. if (!$this->periodNotations->contains($periodNotation)) {
  1252. $this->periodNotations[] = $periodNotation;
  1253. $periodNotation->setOrganization($this);
  1254. }
  1255. return $this;
  1256. }
  1257. public function removePeriodNotation(PeriodNotation $periodNotation): self
  1258. {
  1259. if ($this->periodNotations->removeElement($periodNotation)) {
  1260. // set the owning side to null (unless already changed)
  1261. if ($periodNotation->getOrganization() === $this) {
  1262. $periodNotation->setOrganization(null);
  1263. }
  1264. }
  1265. return $this;
  1266. }
  1267. /**
  1268. * @return Collection<int, File>
  1269. */
  1270. public function getFiles(): Collection
  1271. {
  1272. return $this->files;
  1273. }
  1274. public function addFile(File $file): self
  1275. {
  1276. if (!$this->files->contains($file)) {
  1277. $this->files[] = $file;
  1278. $file->setOrganization($this);
  1279. }
  1280. return $this;
  1281. }
  1282. public function removeFile(File $file): self
  1283. {
  1284. if ($this->files->removeElement($file)) {
  1285. // set the owning side to null (unless already changed)
  1286. if ($file->getOrganization() === $this) {
  1287. $file->setOrganization(null);
  1288. }
  1289. }
  1290. return $this;
  1291. }
  1292. /**
  1293. * @return Collection<int, Notification>
  1294. */
  1295. public function getNotifications(): Collection
  1296. {
  1297. return $this->notifications;
  1298. }
  1299. public function addNotification(Notification $notification): self
  1300. {
  1301. if (!$this->notifications->contains($notification)) {
  1302. $this->notifications[] = $notification;
  1303. $notification->setRecipientOrganization($this);
  1304. }
  1305. return $this;
  1306. }
  1307. public function removeNotification(Notification $notification): self
  1308. {
  1309. if ($this->notifications->removeElement($notification)) {
  1310. // set the owning side to null (unless already changed)
  1311. if ($notification->getRecipientOrganization() === $this) {
  1312. $notification->setRecipientOrganization(null);
  1313. }
  1314. }
  1315. return $this;
  1316. }
  1317. /**
  1318. * @return Collection<int, Email>
  1319. */
  1320. public function getEmails(): Collection
  1321. {
  1322. return $this->emails;
  1323. }
  1324. /**
  1325. * @return Collection<int, Mail>
  1326. */
  1327. public function getMails(): Collection
  1328. {
  1329. return $this->mails;
  1330. }
  1331. /**
  1332. * @return Collection<int, Sms>
  1333. */
  1334. public function getSms(): Collection
  1335. {
  1336. return $this->sms;
  1337. }
  1338. /**
  1339. * @return Collection<int, Activity>
  1340. */
  1341. public function getActivities(): Collection
  1342. {
  1343. return $this->activities;
  1344. }
  1345. public function addActivity(Activity $activity): self
  1346. {
  1347. if (!$this->activities->contains($activity)) {
  1348. $this->activities[] = $activity;
  1349. $activity->setOrganization($this);
  1350. }
  1351. return $this;
  1352. }
  1353. public function removeActivity(Activity $activity): self
  1354. {
  1355. if ($this->activities->removeElement($activity)) {
  1356. // set the owning side to null (unless already changed)
  1357. if ($activity->getOrganization() === $this) {
  1358. $activity->setOrganization(null);
  1359. }
  1360. }
  1361. return $this;
  1362. }
  1363. /**
  1364. * @return Collection<int, Jury>
  1365. */
  1366. public function getJuries(): Collection
  1367. {
  1368. return $this->juries;
  1369. }
  1370. public function addJury(Jury $jury): self
  1371. {
  1372. if (!$this->juries->contains($jury)) {
  1373. $this->juries[] = $jury;
  1374. $jury->setOrganization($this);
  1375. }
  1376. return $this;
  1377. }
  1378. public function removeJury(Jury $jury): self
  1379. {
  1380. if ($this->juries->removeElement($jury)) {
  1381. // set the owning side to null (unless already changed)
  1382. if ($jury->getOrganization() === $this) {
  1383. $jury->setOrganization(null);
  1384. }
  1385. }
  1386. return $this;
  1387. }
  1388. /**
  1389. * @return Collection<int, Commission>
  1390. */
  1391. public function getCommissions(): Collection
  1392. {
  1393. return $this->commissions;
  1394. }
  1395. public function addCommission(Commission $commission): self
  1396. {
  1397. if (!$this->commissions->contains($commission)) {
  1398. $this->commissions[] = $commission;
  1399. $commission->setOrganization($this);
  1400. }
  1401. return $this;
  1402. }
  1403. public function removeCommission(Commission $commission): self
  1404. {
  1405. if ($this->commissions->removeElement($commission)) {
  1406. // set the owning side to null (unless already changed)
  1407. if ($commission->getOrganization() === $this) {
  1408. $commission->setOrganization(null);
  1409. }
  1410. }
  1411. return $this;
  1412. }
  1413. public function getPlaces(): Collection
  1414. {
  1415. return $this->places;
  1416. }
  1417. public function addPlace(Place $place): self
  1418. {
  1419. if (!$this->places->contains($place)) {
  1420. $this->places[] = $place;
  1421. $place->setOrganization($this);
  1422. }
  1423. return $this;
  1424. }
  1425. public function removePlace(Place $place): self
  1426. {
  1427. if ($this->places->removeElement($place)) {
  1428. // set the owning side to null (unless already changed)
  1429. if ($place->getOrganization() === $this) {
  1430. $place->setOrganization(null);
  1431. }
  1432. }
  1433. return $this;
  1434. }
  1435. /**
  1436. * @return Collection<int, Attendance>
  1437. */
  1438. public function getAttendances(): Collection
  1439. {
  1440. return $this->attendances;
  1441. }
  1442. public function addAttendance(Attendance $attendance): self
  1443. {
  1444. if (!$this->attendances->contains($attendance)) {
  1445. $this->attendances[] = $attendance;
  1446. $attendance->setOrganization($this);
  1447. }
  1448. return $this;
  1449. }
  1450. public function removeAttendance(Attendance $attendance): self
  1451. {
  1452. if ($this->attendances->removeElement($attendance)) {
  1453. // set the owning side to null (unless already changed)
  1454. if ($attendance->getOrganization() === $this) {
  1455. $attendance->setOrganization(null);
  1456. }
  1457. }
  1458. return $this;
  1459. }
  1460. /**
  1461. * @return Collection<int, Equipment>
  1462. */
  1463. public function getEquipments(): Collection
  1464. {
  1465. return $this->equipments;
  1466. }
  1467. public function addEquipment(Equipment $equipment): self
  1468. {
  1469. if (!$this->equipments->contains($equipment)) {
  1470. $this->equipments[] = $equipment;
  1471. $equipment->setOrganization($this);
  1472. }
  1473. return $this;
  1474. }
  1475. public function removeEquipment(Equipment $equipment): self
  1476. {
  1477. if ($this->equipments->removeElement($equipment)) {
  1478. // set the owning side to null (unless already changed)
  1479. if ($equipment->getOrganization() === $this) {
  1480. $equipment->setOrganization(null);
  1481. }
  1482. }
  1483. return $this;
  1484. }
  1485. /**
  1486. * @return Collection<int, Intangible>
  1487. */
  1488. public function getIntangibles(): Collection
  1489. {
  1490. return $this->intangibles;
  1491. }
  1492. public function addIntangible(Intangible $intangible): self
  1493. {
  1494. if (!$this->intangibles->contains($intangible)) {
  1495. $this->intangibles[] = $intangible;
  1496. $intangible->setOrganization($this);
  1497. }
  1498. return $this;
  1499. }
  1500. public function removeIntangible(Intangible $intangible): self
  1501. {
  1502. if ($this->intangibles->removeElement($intangible)) {
  1503. // set the owning side to null (unless already changed)
  1504. if ($intangible->getOrganization() === $this) {
  1505. $intangible->setOrganization(null);
  1506. }
  1507. }
  1508. return $this;
  1509. }
  1510. /**
  1511. * @return Collection<int, Donor>
  1512. */
  1513. public function getDonors(): Collection
  1514. {
  1515. return $this->donors;
  1516. }
  1517. public function addDonor(Donor $donor): self
  1518. {
  1519. if (!$this->donors->contains($donor)) {
  1520. $this->donors[] = $donor;
  1521. $donor->setOrganization($this);
  1522. }
  1523. return $this;
  1524. }
  1525. public function removeDonor(Donor $donor): self
  1526. {
  1527. if ($this->donors->removeElement($donor)) {
  1528. // set the owning side to null (unless already changed)
  1529. if ($donor->getOrganization() === $this) {
  1530. $donor->setOrganization(null);
  1531. }
  1532. }
  1533. return $this;
  1534. }
  1535. // public function getOnlineRegistrationSettings(): \App\Entity\Organization\OnlineRegistrationSettings
  1536. // {
  1537. // return $this->onlineRegistrationSettings;
  1538. // }
  1539. //
  1540. // public function setOnlineRegistrationSettings(\App\Entity\Organization\OnlineRegistrationSettings $onlineRegistrationSettings): void
  1541. // {
  1542. // $this->onlineRegistrationSettings = $onlineRegistrationSettings;
  1543. // }
  1544. /**
  1545. * @return Collection<int, Tagg>
  1546. */
  1547. public function getTags(): Collection
  1548. {
  1549. return $this->tags;
  1550. }
  1551. public function addTag(Tagg $tag): self
  1552. {
  1553. if (!$this->tags->contains($tag)) {
  1554. $this->tags[] = $tag;
  1555. }
  1556. return $this;
  1557. }
  1558. public function removeTag(Tagg $tag): self
  1559. {
  1560. $this->tags->removeElement($tag);
  1561. return $this;
  1562. }
  1563. public function getRewards(): Collection
  1564. {
  1565. return $this->rewards;
  1566. }
  1567. public function addReward(Reward $rewards): self
  1568. {
  1569. if (!$this->rewards->contains($rewards)) {
  1570. $this->rewards[] = $rewards;
  1571. $rewards->setOrganization($this);
  1572. }
  1573. return $this;
  1574. }
  1575. public function removeReward(Reward $rewards): self
  1576. {
  1577. if ($this->rewards->removeElement($rewards)) {
  1578. // set the owning side to null (unless already changed)
  1579. if ($rewards->getOrganization() === $this) {
  1580. $rewards->setOrganization(null);
  1581. }
  1582. }
  1583. return $this;
  1584. }
  1585. public function getNetwork(): Collection
  1586. {
  1587. return $this->network;
  1588. }
  1589. public function addNetwork(NetworkOrganization $network): self
  1590. {
  1591. if (!$this->network->contains($network)) {
  1592. $this->network[] = $network;
  1593. $network->setOrganization($this);
  1594. }
  1595. return $this;
  1596. }
  1597. public function removeNetwork(NetworkOrganization $network): self
  1598. {
  1599. if ($this->network->removeElement($network)) {
  1600. $network->setOrganization(null);
  1601. }
  1602. return $this;
  1603. }
  1604. public function getNetworkChild(): Collection
  1605. {
  1606. return $this->networkChild;
  1607. }
  1608. public function addNetworkChild(NetworkOrganization $networkChild): self
  1609. {
  1610. if (!$this->networkChild->contains($networkChild)) {
  1611. $this->networkChild[] = $networkChild;
  1612. $networkChild->setParent($this);
  1613. }
  1614. return $this;
  1615. }
  1616. public function removeNetworkChild(NetworkOrganization $networkChild): self
  1617. {
  1618. if ($this->networkChild->removeElement($networkChild)) {
  1619. $networkChild->setParent(null);
  1620. }
  1621. return $this;
  1622. }
  1623. public function getBillingExportSetting(): ?BillingExportSetting
  1624. {
  1625. return $this->billingExportSetting;
  1626. }
  1627. public function setBillingExportSetting(?BillingExportSetting $billingExportSetting): self
  1628. {
  1629. $this->billingExportSetting = $billingExportSetting;
  1630. return $this;
  1631. }
  1632. public function getMessages(): Collection
  1633. {
  1634. return $this->messages;
  1635. }
  1636. public function addMessage(mixed $message): self
  1637. {
  1638. if (!$this->messages->contains($message)) {
  1639. $this->messages[] = $message;
  1640. $message->setOrganization($this);
  1641. }
  1642. return $this;
  1643. }
  1644. public function removeMessage(mixed $message): self
  1645. {
  1646. if ($this->messages->removeElement($message)) {
  1647. $message->setOrganization(null);
  1648. }
  1649. return $this;
  1650. }
  1651. public function getOnlineRegistrationSettings(): ?OnlineRegistrationSettings
  1652. {
  1653. return $this->onlineRegistrationSettings;
  1654. }
  1655. public function setOnlineRegistrationSettings(?OnlineRegistrationSettings $onlineRegistrationSettings): self
  1656. {
  1657. $this->onlineRegistrationSettings = $onlineRegistrationSettings;
  1658. return $this;
  1659. }
  1660. public function getCotisationByYears(): Collection
  1661. {
  1662. return $this->cotisationByYears;
  1663. }
  1664. public function addCotisationByYear(CotisationByYear $cotisationByYear): self
  1665. {
  1666. if (!$this->cotisationByYears->contains($cotisationByYear)) {
  1667. $this->cotisationByYears[] = $cotisationByYear;
  1668. $cotisationByYear->setOrganization($this);
  1669. }
  1670. return $this;
  1671. }
  1672. public function removeCotisationByYear(CotisationByYear $cotisationByYear): self
  1673. {
  1674. if ($this->cotisationByYears->removeElement($cotisationByYear)) {
  1675. $cotisationByYear->setOrganization(null);
  1676. }
  1677. return $this;
  1678. }
  1679. public function getAttendanceBookingReasons(): Collection
  1680. {
  1681. return $this->attendanceBookingReasons;
  1682. }
  1683. public function addAttendanceBookingReason(AttendanceBookingReason $attendanceBookingReason): self
  1684. {
  1685. if (!$this->attendanceBookingReasons->contains($attendanceBookingReason)) {
  1686. $this->attendanceBookingReasons[] = $attendanceBookingReason;
  1687. $attendanceBookingReason->setOrganization($this);
  1688. }
  1689. return $this;
  1690. }
  1691. public function removeAttendanceBookingReason(AttendanceBookingReason $attendanceBookingReason): self
  1692. {
  1693. if ($this->attendanceBookingReasons->removeElement($attendanceBookingReason)) {
  1694. $attendanceBookingReason->setOrganization(null);
  1695. }
  1696. return $this;
  1697. }
  1698. public function getEducationCurriculumPacks(): Collection
  1699. {
  1700. return $this->educationCurriculumPacks;
  1701. }
  1702. public function addEducationCurriculumPack(Cycle $educationCurriculumPack): self
  1703. {
  1704. if (!$this->educationCurriculumPacks->contains($educationCurriculumPack)) {
  1705. $this->educationCurriculumPacks[] = $educationCurriculumPack;
  1706. $educationCurriculumPack->setOrganization($this);
  1707. }
  1708. return $this;
  1709. }
  1710. public function removeEducationCurriculumPack(Cycle $educationCurriculumPack): self
  1711. {
  1712. if ($this->educationCurriculumPacks->removeElement($educationCurriculumPack)) {
  1713. $educationCurriculumPack->setOrganization(null);
  1714. }
  1715. return $this;
  1716. }
  1717. public function getFamilyQuotientModels(): Collection
  1718. {
  1719. return $this->familyQuotientModels;
  1720. }
  1721. public function addFamilyQuotientModel(FamilyQuotientModel $familyQuotientModel): self
  1722. {
  1723. if (!$this->familyQuotientModels->contains($familyQuotientModel)) {
  1724. $this->familyQuotientModels[] = $familyQuotientModel;
  1725. $familyQuotientModel->setOrganization($this);
  1726. }
  1727. return $this;
  1728. }
  1729. public function removeFamilyQuotientModel(FamilyQuotientModel $familyQuotientModel): self
  1730. {
  1731. if ($this->familyQuotientModels->removeElement($familyQuotientModel)) {
  1732. // $familyQuotientModel->setOrganization(null); // TODO: actuellement, pas nullable: conserver?
  1733. }
  1734. return $this;
  1735. }
  1736. public function getBillSchedules(): Collection
  1737. {
  1738. return $this->billSchedules;
  1739. }
  1740. public function addBillSchedule(BillSchedule $billSchedule): self
  1741. {
  1742. if (!$this->billSchedules->contains($billSchedule)) {
  1743. $this->billSchedules[] = $billSchedule;
  1744. $billSchedule->setOrganization($this);
  1745. }
  1746. return $this;
  1747. }
  1748. public function removeBillSchedule(BillSchedule $billSchedule): self
  1749. {
  1750. if ($this->billSchedules->removeElement($billSchedule)) {
  1751. // $billSchedule->setOrganization(null); // TODO: actuellement, pas nullable: conserver?
  1752. }
  1753. return $this;
  1754. }
  1755. public function getReports(): Collection
  1756. {
  1757. return $this->reports;
  1758. }
  1759. public function addReport(AbstractReport $report): self
  1760. {
  1761. if (!$this->reports->contains($report)) {
  1762. $this->reports[] = $report;
  1763. $report->setOrganization($this);
  1764. }
  1765. return $this;
  1766. }
  1767. public function removeReport(AbstractReport $report): self
  1768. {
  1769. if ($this->reports->removeElement($report)) {
  1770. $report->setOrganization(null);
  1771. }
  1772. return $this;
  1773. }
  1774. function getOrders(): Collection
  1775. {
  1776. return $this->orders;
  1777. }
  1778. function addOrder(Orders $order): self
  1779. {
  1780. if (!$this->orders->contains($order)) {
  1781. $this->orders[] = $order;
  1782. $order->setOrganization($this);
  1783. }
  1784. return $this;
  1785. }
  1786. function removeOrder(Orders $order): self
  1787. {
  1788. if ($this->orders->removeElement($order)) {
  1789. $order->setOrganization(null);
  1790. }
  1791. return $this;
  1792. }
  1793. function getTips(): Collection
  1794. {
  1795. return $this->tips;
  1796. }
  1797. function addTip(Tips $tip): self
  1798. {
  1799. if (!$this->tips->contains($tip)) {
  1800. $this->tips[] = $tip;
  1801. $tip->addOrganization($this);
  1802. }
  1803. return $this;
  1804. }
  1805. function removeTip(Tips $tip): self
  1806. {
  1807. if ($this->tips->removeElement($tip)) {
  1808. $tip->removeOrganization($this);
  1809. }
  1810. return $this;
  1811. }
  1812. }