Organization.php 51 KB

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