Organization.php 50 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858
  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\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\Entity\Reward\Reward;
  35. use App\Enum\Organization\CategoryEnum;
  36. use App\Enum\Organization\LegalEnum;
  37. use App\Enum\Organization\OpcaEnum;
  38. use App\Enum\Organization\PrincipalTypeEnum;
  39. use App\Enum\Organization\SchoolCategoryEnum;
  40. use App\Enum\Organization\TypeEstablishmentDetailEnum;
  41. use App\Enum\Organization\TypeEstablishmentEnum;
  42. use App\Repository\Organization\OrganizationRepository;
  43. // use DH\Auditor\Provider\Doctrine\Auditing\Annotation\Auditable;
  44. use Doctrine\Common\Collections\ArrayCollection;
  45. use Doctrine\Common\Collections\Collection;
  46. use Doctrine\ORM\Mapping as ORM;
  47. use JetBrains\PhpStorm\Pure;
  48. /**
  49. * Structure, organisation.
  50. *
  51. * Security :
  52. *
  53. * * @see App\Doctrine\Organization\CurrentOrganizationExtension
  54. */
  55. #[ApiResource(operations: [
  56. new Get(security: 'object.getId() == user.getOrganization().getId()'),
  57. ])] //
  58. // #[Auditable]
  59. #[ORM\Entity(repositoryClass: OrganizationRepository::class)]
  60. class Organization
  61. {
  62. #[ORM\Id]
  63. #[ORM\Column]
  64. #[ORM\GeneratedValue]
  65. private ?int $id = null;
  66. #[ORM\Column(length: 128, nullable: false)]
  67. public string $name;
  68. #[ORM\Column(length: 128)]
  69. private string $identifier;
  70. #[ORM\Column(length: 50, nullable: true, enumType: LegalEnum::class)]
  71. private ?LegalEnum $legalStatus = null;
  72. #[ORM\Column(length: 255, nullable: true, enumType: PrincipalTypeEnum::class)]
  73. private ?PrincipalTypeEnum $principalType = null;
  74. #[ORM\OneToOne(mappedBy: 'organization', cascade: ['persist', 'remove'])]
  75. private Settings $settings;
  76. #[ORM\OneToMany(mappedBy: 'organization', targetEntity: Access::class, orphanRemoval: true)]
  77. private Collection $accesses;
  78. #[ORM\OneToMany(mappedBy: 'organization', targetEntity: NetworkOrganization::class, orphanRemoval: true)]
  79. private Collection $networkOrganizations;
  80. #[ORM\OneToMany(mappedBy: 'parent', targetEntity: NetworkOrganization::class, orphanRemoval: true)]
  81. private Collection $networkOrganizationChildren;
  82. #[ORM\OneToMany(mappedBy: 'organization', targetEntity: EducationNotationConfig::class, orphanRemoval: true)]
  83. private Collection $educationNotationConfigs;
  84. #[ORM\OneToOne(inversedBy: 'organization', targetEntity: Parameters::class)]
  85. #[ORM\JoinColumn(nullable: false)]
  86. private Parameters $parameters;
  87. #[ORM\OneToOne(mappedBy: 'organization', cascade: ['persist', 'remove'], orphanRemoval: true)]
  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: 255, nullable: true)]
  100. private ?string $volumeAndFolioNumber = null;
  101. #[ORM\Column(length: 5, nullable: true)]
  102. private ?string $apeNumber = null;
  103. #[ORM\Column(length: 50, nullable: true)]
  104. private ?string $tvaNumber = null;
  105. #[ORM\Column(length: 40, nullable: true)]
  106. private ?string $otherType = null;
  107. #[ORM\Column(length: 80, nullable: true)]
  108. private ?string $acronym = null;
  109. #[ORM\Column(length: 255, nullable: true)]
  110. private ?string $facebook = null;
  111. #[ORM\Column(length: 255, nullable: true)]
  112. private ?string $twitter = null;
  113. #[ORM\Column(length: 255, nullable: true)]
  114. private ?string $youtube = null;
  115. #[ORM\Column(length: 255, nullable: true)]
  116. private ?string $instagram = null;
  117. #[ORM\Column(length: 35, nullable: true)]
  118. private ?string $collectiveAgreement = null;
  119. #[ORM\Column(length: 50, nullable: true, enumType: OpcaEnum::class)]
  120. private ?OpcaEnum $opca = null;
  121. #[ORM\Column(length: 35, nullable: true)]
  122. private ?string $icomNumber = null;
  123. #[ORM\Column(length: 35, nullable: true)]
  124. private ?string $urssafNumber = null;
  125. #[ORM\Column(length: 20, nullable: true)]
  126. private ?string $youngApproval = null;
  127. #[ORM\Column(length: 20, nullable: true)]
  128. private ?string $trainingApproval = null;
  129. #[ORM\Column(length: 50, nullable: true)]
  130. private ?string $otherApproval = null;
  131. #[ORM\Column(length: 35, nullable: true)]
  132. private ?string $prefectureName = null;
  133. #[ORM\Column(length: 20, nullable: true)]
  134. private ?string $prefectureNumber = null;
  135. #[ORM\Column(length: 50, nullable: true, enumType: CategoryEnum::class)]
  136. private ?CategoryEnum $category = null;
  137. #[ORM\Column(length: 50, nullable: true, enumType: SchoolCategoryEnum::class)]
  138. private ?SchoolCategoryEnum $schoolCategory = null;
  139. #[ORM\Column(length: 50, nullable: true, enumType: TypeEstablishmentEnum::class)]
  140. private ?TypeEstablishmentEnum $typeEstablishment = null;
  141. #[ORM\Column(length: 50, nullable: true, enumType: TypeEstablishmentDetailEnum::class)]
  142. private ?TypeEstablishmentDetailEnum $typeEstablishmentDetail = null;
  143. #[ORM\Column(nullable: true)]
  144. private ?float $budget = null;
  145. #[ORM\Column(nullable: true)]
  146. private ?bool $isPedagogicIsPrincipalActivity = null;
  147. #[ORM\Column(nullable: true)]
  148. private ?float $pedagogicBudget = null;
  149. #[ORM\Column(nullable: true)]
  150. private ?bool $isPerformanceContractor = null;
  151. #[ORM\Column(length: 20, nullable: true)]
  152. private ?string $ffecApproval = null;
  153. #[ORM\Column]
  154. private bool $portailVisibility = true;
  155. #[ORM\Column(nullable: true)]
  156. private ?int $cmsId = null;
  157. #[ORM\ManyToOne(inversedBy: 'organizationLogos')]
  158. #[ORM\JoinColumn(referencedColumnName: 'id', nullable: true, onDelete: 'SET NULL')]
  159. private ?File $logo = null;
  160. #[ORM\ManyToOne(inversedBy: 'organizationImages')]
  161. #[ORM\JoinColumn(referencedColumnName: 'id', nullable: true, onDelete: 'SET NULL')]
  162. private ?File $image = null;
  163. #[ORM\ManyToMany(targetEntity: TypeOfPractice::class, mappedBy: 'organizations')]
  164. private Collection $typeOfPractices;
  165. #[ORM\Column(nullable: true)]
  166. private ?string $otherPractice = null;
  167. #[ORM\ManyToMany(targetEntity: ContactPoint::class, mappedBy: 'organization')]
  168. private Collection $contactPoints;
  169. #[ORM\ManyToMany(targetEntity: BankAccount::class, inversedBy: 'organization')]
  170. #[ORM\JoinColumn(name: 'organization_id', referencedColumnName: 'id', unique: true)]
  171. #[ORM\InverseJoinColumn(name: 'bankAccount_id', referencedColumnName: 'id')]
  172. private Collection $bankAccounts;
  173. #[ORM\OneToMany(mappedBy: 'organization', targetEntity: OrganizationAddressPostal::class, orphanRemoval: true)]
  174. private Collection $organizationAddressPostals;
  175. #[ORM\OneToMany(mappedBy: 'organization', targetEntity: OrganizationLicence::class, orphanRemoval: true)]
  176. private Collection $organizationLicences;
  177. #[ORM\OneToMany(mappedBy: 'organization', targetEntity: OrganizationArticle::class, orphanRemoval: true)]
  178. private Collection $organizationArticles;
  179. #[ORM\OneToMany(mappedBy: 'organization', targetEntity: Cycle::class, orphanRemoval: true)]
  180. private Collection $cycles;
  181. #[ORM\OneToMany(mappedBy: 'organization', targetEntity: EducationTiming::class, orphanRemoval: true)]
  182. private Collection $educationTimings;
  183. #[ORM\OneToMany(mappedBy: 'organization', targetEntity: Subdomain::class)]
  184. private Collection $subdomains;
  185. #[ORM\ManyToOne(inversedBy: 'organizationContacts')]
  186. #[ORM\JoinColumn(referencedColumnName: 'id', nullable: true, onDelete: 'SET NULL')]
  187. private ?Access $contactPerson;
  188. #[ORM\OneToMany(mappedBy: 'organization', targetEntity: OrganizationHoliday::class, cascade: ['persist'], orphanRemoval: true)]
  189. private Collection $holidays;
  190. #[ORM\OneToMany(mappedBy: 'organization', targetEntity: Course::class, orphanRemoval: true)]
  191. private Collection $courses;
  192. #[ORM\OneToMany(mappedBy: 'organization', targetEntity: EducationalProject::class, orphanRemoval: true)]
  193. private Collection $educationalProjects;
  194. #[ORM\OneToMany(mappedBy: 'organization', targetEntity: Event::class, orphanRemoval: true)]
  195. private Collection $events;
  196. #[ORM\OneToMany(mappedBy: 'organization', targetEntity: Examen::class, orphanRemoval: true)]
  197. private Collection $examens;
  198. #[ORM\OneToMany(mappedBy: 'organization', targetEntity: CriteriaNotation::class, cascade: ['persist'], orphanRemoval: true)]
  199. private Collection $critereNotations;
  200. #[ORM\OneToMany(mappedBy: 'organization', targetEntity: EducationCategory::class, orphanRemoval: true)]
  201. private Collection $educationCategories;
  202. #[ORM\OneToMany(mappedBy: 'organization', targetEntity: PeriodNotation::class, orphanRemoval: true)]
  203. private Collection $periodNotations;
  204. #[ORM\OneToMany(mappedBy: 'organization', targetEntity: File::class, orphanRemoval: true)]
  205. private Collection $files;
  206. #[ORM\OneToMany(mappedBy: 'recipientOrganization', targetEntity: Notification::class, orphanRemoval: true)]
  207. private Collection $notifications;
  208. #[ORM\OneToMany(mappedBy: 'author', targetEntity: Email::class)]
  209. private Collection $emails;
  210. #[ORM\OneToMany(mappedBy: 'author', targetEntity: Mail::class)]
  211. private Collection $mails;
  212. #[ORM\OneToMany(mappedBy: 'author', targetEntity: Sms::class)]
  213. private Collection $sms;
  214. #[ORM\OneToMany(mappedBy: 'organization', targetEntity: Activity::class, cascade: ['persist'], orphanRemoval: true)]
  215. private Collection $activities;
  216. #[ORM\OneToMany(mappedBy: 'organization', targetEntity: Jury::class, orphanRemoval: true)]
  217. private Collection $juries;
  218. #[ORM\OneToMany(mappedBy: 'organization', targetEntity: Commission::class, orphanRemoval: true)]
  219. private Collection $commissions;
  220. #[ORM\OneToMany(mappedBy: 'organization', targetEntity: Place::class, orphanRemoval: true)]
  221. private Collection $places;
  222. #[ORM\OneToMany(mappedBy: 'organization', targetEntity: Attendance::class, orphanRemoval: true)]
  223. private Collection $attendances;
  224. #[ORM\OneToMany(mappedBy: 'organization', targetEntity: Equipment::class, orphanRemoval: true)]
  225. private Collection $equipments;
  226. #[ORM\OneToMany(mappedBy: 'organization', targetEntity: Intangible::class, orphanRemoval: true)]
  227. private Collection $intangibles;
  228. #[ORM\OneToMany(mappedBy: 'organization', targetEntity: Donor::class, orphanRemoval: true)]
  229. private Collection $donors;
  230. #[ORM\OneToMany(mappedBy: 'organization', targetEntity: Reward::class, orphanRemoval: true)]
  231. private Collection $rewards;
  232. // #[ORM\OneToOne()]
  233. // private OnlineRegistrationSettings $onlineRegistrationSettings;
  234. #[ORM\ManyToMany(targetEntity: Tagg::class, inversedBy: 'organizations', cascade: ['persist'])]
  235. #[ORM\JoinTable(name: 'tag_organization')]
  236. #[ORM\JoinColumn(name: 'organization_id', referencedColumnName: 'id')]
  237. #[ORM\InverseJoinColumn(name: 'tag_id', referencedColumnName: 'id')]
  238. private Collection $tags;
  239. #[Pure]
  240. public function __construct()
  241. {
  242. $this->accesses = new ArrayCollection();
  243. $this->networkOrganizations = new ArrayCollection();
  244. $this->networkOrganizationChildren = new ArrayCollection();
  245. $this->typeOfPractices = new ArrayCollection();
  246. $this->contactPoints = new ArrayCollection();
  247. $this->bankAccounts = new ArrayCollection();
  248. $this->organizationAddressPostals = new ArrayCollection();
  249. $this->organizationLicences = new ArrayCollection();
  250. $this->organizationArticles = new ArrayCollection();
  251. $this->cycles = new ArrayCollection();
  252. $this->educationTimings = new ArrayCollection();
  253. $this->educationNotationConfigs = new ArrayCollection();
  254. $this->subdomains = new ArrayCollection();
  255. $this->holidays = new ArrayCollection();
  256. $this->courses = new ArrayCollection();
  257. $this->educationalProjects = new ArrayCollection();
  258. $this->events = new ArrayCollection();
  259. $this->examens = new ArrayCollection();
  260. $this->critereNotations = new ArrayCollection();
  261. $this->educationCategories = new ArrayCollection();
  262. $this->periodNotations = new ArrayCollection();
  263. $this->files = new ArrayCollection();
  264. $this->notifications = new ArrayCollection();
  265. $this->emails = new ArrayCollection();
  266. $this->mails = new ArrayCollection();
  267. $this->sms = new ArrayCollection();
  268. $this->activities = new ArrayCollection();
  269. $this->juries = new ArrayCollection();
  270. $this->commissions = new ArrayCollection();
  271. $this->places = new ArrayCollection();
  272. $this->attendances = new ArrayCollection();
  273. $this->equipments = new ArrayCollection();
  274. $this->intangibles = new ArrayCollection();
  275. $this->donors = new ArrayCollection();
  276. $this->tags = new ArrayCollection();
  277. $this->rewards = new ArrayCollection();
  278. }
  279. public function getId(): ?int
  280. {
  281. return $this->id;
  282. }
  283. public function getName(): string
  284. {
  285. return $this->name;
  286. }
  287. public function setName(string $name): self
  288. {
  289. $this->name = $name;
  290. return $this;
  291. }
  292. public function getIdentifier(): string
  293. {
  294. return $this->identifier;
  295. }
  296. public function setIdentifier(string $identifier): self
  297. {
  298. $this->identifier = $identifier;
  299. return $this;
  300. }
  301. public function getLegalStatus(): ?LegalEnum
  302. {
  303. return $this->legalStatus;
  304. }
  305. public function setLegalStatus(?LegalEnum $legalStatus): self
  306. {
  307. $this->legalStatus = $legalStatus;
  308. return $this;
  309. }
  310. public function getPrincipalType(): ?PrincipalTypeEnum
  311. {
  312. return $this->principalType;
  313. }
  314. public function setPrincipalType(?PrincipalTypeEnum $principalType): self
  315. {
  316. $this->principalType = $principalType;
  317. return $this;
  318. }
  319. public function getSettings(): Settings
  320. {
  321. return $this->settings;
  322. }
  323. public function setSettings(Settings $settings): self
  324. {
  325. // set the owning side of the relation if necessary
  326. if ($settings->getOrganization() !== $this) {
  327. $settings->setOrganization($this);
  328. }
  329. $this->settings = $settings;
  330. return $this;
  331. }
  332. public function getAccesses(): Collection
  333. {
  334. return $this->accesses;
  335. }
  336. public function getNetworkOrganizations(): Collection
  337. {
  338. return $this->networkOrganizations;
  339. }
  340. public function addNetworkOrganization(NetworkOrganization $networkOrganization): self
  341. {
  342. if (!$this->networkOrganizations->contains($networkOrganization)) {
  343. $this->networkOrganizations[] = $networkOrganization;
  344. $networkOrganization->setOrganization($this);
  345. }
  346. return $this;
  347. }
  348. public function removeNetworkOrganization(NetworkOrganization $networkOrganization): self
  349. {
  350. if ($this->networkOrganizations->removeElement($networkOrganization)) {
  351. // set the owning side to null (unless already changed)
  352. if ($networkOrganization->getOrganization() === $this) {
  353. $networkOrganization->setOrganization(null);
  354. }
  355. }
  356. return $this;
  357. }
  358. public function getNetworkOrganizationChildren(): Collection
  359. {
  360. return $this->networkOrganizationChildren;
  361. }
  362. public function addNetworkOrganizationChild(NetworkOrganization $networkOrganizationChild): self
  363. {
  364. if (!$this->networkOrganizationChildren->contains($networkOrganizationChild)) {
  365. $this->networkOrganizationChildren[] = $networkOrganizationChild;
  366. $networkOrganizationChild->setParent($this);
  367. }
  368. return $this;
  369. }
  370. public function removeNetworkOrganizationChild(NetworkOrganization $networkOrganizationChild): self
  371. {
  372. if ($this->networkOrganizationChildren->removeElement($networkOrganizationChild)) {
  373. // set the owning side to null (unless already changed)
  374. if ($networkOrganizationChild->getParent() === $this) {
  375. $networkOrganizationChild->setParent(null);
  376. }
  377. }
  378. return $this;
  379. }
  380. public function getParameters(): Parameters
  381. {
  382. return $this->parameters;
  383. }
  384. public function setParameters(Parameters $parameters): self
  385. {
  386. $this->parameters = $parameters;
  387. return $this;
  388. }
  389. public function getLogo(): ?File
  390. {
  391. return $this->logo;
  392. }
  393. public function setLogo(?File $logo): void
  394. {
  395. $this->logo = $logo;
  396. }
  397. public function getBillingSetting(): BillingSetting
  398. {
  399. return $this->billingSetting;
  400. }
  401. public function setBillingSetting(BillingSetting $billingSetting): self
  402. {
  403. $this->billingSetting = $billingSetting;
  404. return $this;
  405. }
  406. public function getDescription(): ?string
  407. {
  408. return $this->description;
  409. }
  410. public function setDescription(?string $description): self
  411. {
  412. $this->description = $description;
  413. return $this;
  414. }
  415. public function getCreationDate(): ?\DateTimeInterface
  416. {
  417. return $this->creationDate;
  418. }
  419. public function setCreationDate(?\DateTimeInterface $creationDate): self
  420. {
  421. $this->creationDate = $creationDate;
  422. return $this;
  423. }
  424. public function getDeclarationDate(): ?\DateTimeInterface
  425. {
  426. return $this->declarationDate;
  427. }
  428. public function setDeclarationDate(?\DateTimeInterface $declarationDate): self
  429. {
  430. $this->declarationDate = $declarationDate;
  431. return $this;
  432. }
  433. public function getSiretNumber(): ?string
  434. {
  435. return $this->siretNumber;
  436. }
  437. public function setSiretNumber(?string $siretNumber): self
  438. {
  439. $this->siretNumber = $siretNumber;
  440. return $this;
  441. }
  442. public function getWaldecNumber(): ?string
  443. {
  444. return $this->waldecNumber;
  445. }
  446. public function setWaldecNumber(?string $waldecNumber): self
  447. {
  448. $this->waldecNumber = $waldecNumber;
  449. return $this;
  450. }
  451. public function getVolumeAndFolioNumber(): ?string
  452. {
  453. return $this->volumeAndFolioNumber;
  454. }
  455. public function setVolumeAndFolioNumber(?string $volumeAndFolioNumber): self
  456. {
  457. $this->volumeAndFolioNumber = $volumeAndFolioNumber;
  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(): ?OpcaEnum
  542. {
  543. return $this->opca;
  544. }
  545. public function setOpca(?OpcaEnum $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(): ?CategoryEnum
  614. {
  615. return $this->category;
  616. }
  617. public function setCategory(?CategoryEnum $category): self
  618. {
  619. $this->category = $category;
  620. return $this;
  621. }
  622. public function getSchoolCategory(): ?SchoolCategoryEnum
  623. {
  624. return $this->schoolCategory;
  625. }
  626. public function setSchoolCategory(?SchoolCategoryEnum $schoolCategory): self
  627. {
  628. $this->schoolCategory = $schoolCategory;
  629. return $this;
  630. }
  631. public function getTypeEstablishment(): ?TypeEstablishmentEnum
  632. {
  633. return $this->typeEstablishment;
  634. }
  635. public function setTypeEstablishment(?TypeEstablishmentEnum $typeEstablishment): self
  636. {
  637. $this->typeEstablishment = $typeEstablishment;
  638. return $this;
  639. }
  640. public function getTypeEstablishmentDetail(): ?TypeEstablishmentDetailEnum
  641. {
  642. return $this->typeEstablishmentDetail;
  643. }
  644. public function setTypeEstablishmentDetail(?TypeEstablishmentDetailEnum $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 addAccess(Access $access): self
  924. {
  925. if (!$this->accesses->contains($access)) {
  926. $this->accesses[] = $access;
  927. $access->setOrganization($this);
  928. }
  929. return $this;
  930. }
  931. public function removeAccess(Access $access): self
  932. {
  933. if ($this->accesses->removeElement($access)) {
  934. // set the owning side to null (unless already changed)
  935. if ($access->getOrganization() === $this) {
  936. $access->setOrganization(null);
  937. }
  938. }
  939. return $this;
  940. }
  941. public function getContactPerson(): ?Access
  942. {
  943. return $this->contactPerson;
  944. }
  945. public function setContactPerson(?Access $contactPerson): self
  946. {
  947. $this->contactPerson = $contactPerson;
  948. return $this;
  949. }
  950. /**
  951. * @return Collection<int, OrganizationHoliday>
  952. */
  953. public function getHolidays(): Collection
  954. {
  955. return $this->holidays;
  956. }
  957. public function addHoliday(OrganizationHoliday $holiday): self
  958. {
  959. if (!$this->holidays->contains($holiday)) {
  960. $this->holidays[] = $holiday;
  961. $holiday->setOrganization($this);
  962. }
  963. return $this;
  964. }
  965. public function removeHoliday(OrganizationHoliday $holiday): self
  966. {
  967. if ($this->holidays->removeElement($holiday)) {
  968. // set the owning side to null (unless already changed)
  969. if ($holiday->getOrganization() === $this) {
  970. $holiday->setOrganization(null);
  971. }
  972. }
  973. return $this;
  974. }
  975. /**
  976. * @return Collection<int, Course>
  977. */
  978. public function getCourses(): Collection
  979. {
  980. return $this->courses;
  981. }
  982. public function addCourse(Course $course): self
  983. {
  984. if (!$this->courses->contains($course)) {
  985. $this->courses[] = $course;
  986. $course->setOrganization($this);
  987. }
  988. return $this;
  989. }
  990. public function removeCourse(Course $course): self
  991. {
  992. if ($this->courses->removeElement($course)) {
  993. // set the owning side to null (unless already changed)
  994. if ($course->getOrganization() === $this) {
  995. $course->setOrganization(null);
  996. }
  997. }
  998. return $this;
  999. }
  1000. /**
  1001. * @return Collection<int, EducationalProject>
  1002. */
  1003. public function getEducationalProjects(): Collection
  1004. {
  1005. return $this->educationalProjects;
  1006. }
  1007. public function addEducationalProject(EducationalProject $educationalProject): self
  1008. {
  1009. if (!$this->educationalProjects->contains($educationalProject)) {
  1010. $this->educationalProjects[] = $educationalProject;
  1011. $educationalProject->setOrganization($this);
  1012. }
  1013. return $this;
  1014. }
  1015. public function removeEducationalProject(EducationalProject $educationalProject): self
  1016. {
  1017. if ($this->educationalProjects->removeElement($educationalProject)) {
  1018. // set the owning side to null (unless already changed)
  1019. if ($educationalProject->getOrganization() === $this) {
  1020. $educationalProject->setOrganization(null);
  1021. }
  1022. }
  1023. return $this;
  1024. }
  1025. /**
  1026. * @return Collection<int, Event>
  1027. */
  1028. public function getEvents(): Collection
  1029. {
  1030. return $this->events;
  1031. }
  1032. public function addEvent(Event $event): self
  1033. {
  1034. if (!$this->events->contains($event)) {
  1035. $this->events[] = $event;
  1036. $event->setOrganization($this);
  1037. }
  1038. return $this;
  1039. }
  1040. public function removeEvent(Event $event): self
  1041. {
  1042. if ($this->events->removeElement($event)) {
  1043. // set the owning side to null (unless already changed)
  1044. if ($event->getOrganization() === $this) {
  1045. $event->setOrganization(null);
  1046. }
  1047. }
  1048. return $this;
  1049. }
  1050. /**
  1051. * @return Collection<int, Examen>
  1052. */
  1053. public function getExamens(): Collection
  1054. {
  1055. return $this->examens;
  1056. }
  1057. public function addExamen(Examen $examen): self
  1058. {
  1059. if (!$this->examens->contains($examen)) {
  1060. $this->examens[] = $examen;
  1061. $examen->setOrganization($this);
  1062. }
  1063. return $this;
  1064. }
  1065. public function removeExamen(Examen $examen): self
  1066. {
  1067. if ($this->examens->removeElement($examen)) {
  1068. // set the owning side to null (unless already changed)
  1069. if ($examen->getOrganization() === $this) {
  1070. $examen->setOrganization(null);
  1071. }
  1072. }
  1073. return $this;
  1074. }
  1075. /**
  1076. * @return Collection<int, CriteriaNotation>
  1077. */
  1078. public function getCritereNotations(): Collection
  1079. {
  1080. return $this->critereNotations;
  1081. }
  1082. public function addCritereNotation(CriteriaNotation $critereNotation): self
  1083. {
  1084. if (!$this->critereNotations->contains($critereNotation)) {
  1085. $this->critereNotations[] = $critereNotation;
  1086. $critereNotation->setOrganization($this);
  1087. }
  1088. return $this;
  1089. }
  1090. public function removeCritereNotation(CriteriaNotation $critereNotation): self
  1091. {
  1092. if ($this->critereNotations->removeElement($critereNotation)) {
  1093. // set the owning side to null (unless already changed)
  1094. if ($critereNotation->getOrganization() === $this) {
  1095. $critereNotation->setOrganization(null);
  1096. }
  1097. }
  1098. return $this;
  1099. }
  1100. /**
  1101. * @return Collection<int, EducationCategory>
  1102. */
  1103. public function getEducationCategories(): Collection
  1104. {
  1105. return $this->educationCategories;
  1106. }
  1107. public function addEducationCategory(EducationCategory $educationCategory): self
  1108. {
  1109. if (!$this->educationCategories->contains($educationCategory)) {
  1110. $this->educationCategories[] = $educationCategory;
  1111. $educationCategory->setOrganization($this);
  1112. }
  1113. return $this;
  1114. }
  1115. public function removeEducationCategory(EducationCategory $educationCategory): self
  1116. {
  1117. if ($this->educationCategories->removeElement($educationCategory)) {
  1118. // set the owning side to null (unless already changed)
  1119. if ($educationCategory->getOrganization() === $this) {
  1120. $educationCategory->setOrganization(null);
  1121. }
  1122. }
  1123. return $this;
  1124. }
  1125. /**
  1126. * @return Collection<int, PeriodNotation>
  1127. */
  1128. public function getPeriodNotations(): Collection
  1129. {
  1130. return $this->periodNotations;
  1131. }
  1132. public function addPeriodNotation(PeriodNotation $periodNotation): self
  1133. {
  1134. if (!$this->periodNotations->contains($periodNotation)) {
  1135. $this->periodNotations[] = $periodNotation;
  1136. $periodNotation->setOrganization($this);
  1137. }
  1138. return $this;
  1139. }
  1140. public function removePeriodNotation(PeriodNotation $periodNotation): self
  1141. {
  1142. if ($this->periodNotations->removeElement($periodNotation)) {
  1143. // set the owning side to null (unless already changed)
  1144. if ($periodNotation->getOrganization() === $this) {
  1145. $periodNotation->setOrganization(null);
  1146. }
  1147. }
  1148. return $this;
  1149. }
  1150. /**
  1151. * @return Collection<int, File>
  1152. */
  1153. public function getFiles(): Collection
  1154. {
  1155. return $this->files;
  1156. }
  1157. public function addFile(File $file): self
  1158. {
  1159. if (!$this->files->contains($file)) {
  1160. $this->files[] = $file;
  1161. $file->setOrganization($this);
  1162. }
  1163. return $this;
  1164. }
  1165. public function removeFile(File $file): self
  1166. {
  1167. if ($this->files->removeElement($file)) {
  1168. // set the owning side to null (unless already changed)
  1169. if ($file->getOrganization() === $this) {
  1170. $file->setOrganization(null);
  1171. }
  1172. }
  1173. return $this;
  1174. }
  1175. /**
  1176. * @return Collection<int, Notification>
  1177. */
  1178. public function getNotifications(): Collection
  1179. {
  1180. return $this->notifications;
  1181. }
  1182. public function addNotification(Notification $notification): self
  1183. {
  1184. if (!$this->notifications->contains($notification)) {
  1185. $this->notifications[] = $notification;
  1186. $notification->setRecipientOrganization($this);
  1187. }
  1188. return $this;
  1189. }
  1190. public function removeNotification(Notification $notification): self
  1191. {
  1192. if ($this->notifications->removeElement($notification)) {
  1193. // set the owning side to null (unless already changed)
  1194. if ($notification->getRecipientOrganization() === $this) {
  1195. $notification->setRecipientOrganization(null);
  1196. }
  1197. }
  1198. return $this;
  1199. }
  1200. /**
  1201. * @return Collection<int, Email>
  1202. */
  1203. public function getEmails(): Collection
  1204. {
  1205. return $this->emails;
  1206. }
  1207. /**
  1208. * @return Collection<int, Mail>
  1209. */
  1210. public function getMails(): Collection
  1211. {
  1212. return $this->mails;
  1213. }
  1214. /**
  1215. * @return Collection<int, Sms>
  1216. */
  1217. public function getSms(): Collection
  1218. {
  1219. return $this->sms;
  1220. }
  1221. /**
  1222. * @return Collection<int, Activity>
  1223. */
  1224. public function getActivities(): Collection
  1225. {
  1226. return $this->activities;
  1227. }
  1228. public function addActivity(Activity $activity): self
  1229. {
  1230. if (!$this->activities->contains($activity)) {
  1231. $this->activities[] = $activity;
  1232. $activity->setOrganization($this);
  1233. }
  1234. return $this;
  1235. }
  1236. public function removeActivity(Activity $activity): self
  1237. {
  1238. if ($this->activities->removeElement($activity)) {
  1239. // set the owning side to null (unless already changed)
  1240. if ($activity->getOrganization() === $this) {
  1241. $activity->setOrganization(null);
  1242. }
  1243. }
  1244. return $this;
  1245. }
  1246. /**
  1247. * @return Collection<int, Jury>
  1248. */
  1249. public function getJuries(): Collection
  1250. {
  1251. return $this->juries;
  1252. }
  1253. public function addJury(Jury $jury): self
  1254. {
  1255. if (!$this->juries->contains($jury)) {
  1256. $this->juries[] = $jury;
  1257. $jury->setOrganization($this);
  1258. }
  1259. return $this;
  1260. }
  1261. public function removeJury(Jury $jury): self
  1262. {
  1263. if ($this->juries->removeElement($jury)) {
  1264. // set the owning side to null (unless already changed)
  1265. if ($jury->getOrganization() === $this) {
  1266. $jury->setOrganization(null);
  1267. }
  1268. }
  1269. return $this;
  1270. }
  1271. /**
  1272. * @return Collection<int, Commission>
  1273. */
  1274. public function getCommissions(): Collection
  1275. {
  1276. return $this->commissions;
  1277. }
  1278. public function addCommission(Commission $commission): self
  1279. {
  1280. if (!$this->commissions->contains($commission)) {
  1281. $this->commissions[] = $commission;
  1282. $commission->setOrganization($this);
  1283. }
  1284. return $this;
  1285. }
  1286. public function removeCommission(Commission $commission): self
  1287. {
  1288. if ($this->commissions->removeElement($commission)) {
  1289. // set the owning side to null (unless already changed)
  1290. if ($commission->getOrganization() === $this) {
  1291. $commission->setOrganization(null);
  1292. }
  1293. }
  1294. return $this;
  1295. }
  1296. /**
  1297. * @return Collection<int, Place>
  1298. */
  1299. public function getPlaces(): Collection
  1300. {
  1301. return $this->places;
  1302. }
  1303. public function addPlace(Place $place): self
  1304. {
  1305. if (!$this->places->contains($place)) {
  1306. $this->places[] = $place;
  1307. $place->setOrganization($this);
  1308. }
  1309. return $this;
  1310. }
  1311. public function removePlace(Place $place): self
  1312. {
  1313. if ($this->places->removeElement($place)) {
  1314. // set the owning side to null (unless already changed)
  1315. if ($place->getOrganization() === $this) {
  1316. $place->setOrganization(null);
  1317. }
  1318. }
  1319. return $this;
  1320. }
  1321. /**
  1322. * @return Collection<int, Attendance>
  1323. */
  1324. public function getAttendances(): Collection
  1325. {
  1326. return $this->attendances;
  1327. }
  1328. public function addAttendance(Attendance $attendance): self
  1329. {
  1330. if (!$this->attendances->contains($attendance)) {
  1331. $this->attendances[] = $attendance;
  1332. $attendance->setOrganization($this);
  1333. }
  1334. return $this;
  1335. }
  1336. public function removeAttendance(Attendance $attendance): self
  1337. {
  1338. if ($this->attendances->removeElement($attendance)) {
  1339. // set the owning side to null (unless already changed)
  1340. if ($attendance->getOrganization() === $this) {
  1341. $attendance->setOrganization(null);
  1342. }
  1343. }
  1344. return $this;
  1345. }
  1346. /**
  1347. * @return Collection<int, Equipment>
  1348. */
  1349. public function getEquipments(): Collection
  1350. {
  1351. return $this->equipments;
  1352. }
  1353. public function addEquipment(Equipment $equipment): self
  1354. {
  1355. if (!$this->equipments->contains($equipment)) {
  1356. $this->equipments[] = $equipment;
  1357. $equipment->setOrganization($this);
  1358. }
  1359. return $this;
  1360. }
  1361. public function removeEquipment(Equipment $equipment): self
  1362. {
  1363. if ($this->equipments->removeElement($equipment)) {
  1364. // set the owning side to null (unless already changed)
  1365. if ($equipment->getOrganization() === $this) {
  1366. $equipment->setOrganization(null);
  1367. }
  1368. }
  1369. return $this;
  1370. }
  1371. /**
  1372. * @return Collection<int, Intangible>
  1373. */
  1374. public function getIntangibles(): Collection
  1375. {
  1376. return $this->intangibles;
  1377. }
  1378. public function addIntangible(Intangible $intangible): self
  1379. {
  1380. if (!$this->intangibles->contains($intangible)) {
  1381. $this->intangibles[] = $intangible;
  1382. $intangible->setOrganization($this);
  1383. }
  1384. return $this;
  1385. }
  1386. public function removeIntangible(Intangible $intangible): self
  1387. {
  1388. if ($this->intangibles->removeElement($intangible)) {
  1389. // set the owning side to null (unless already changed)
  1390. if ($intangible->getOrganization() === $this) {
  1391. $intangible->setOrganization(null);
  1392. }
  1393. }
  1394. return $this;
  1395. }
  1396. /**
  1397. * @return Collection<int, Donor>
  1398. */
  1399. public function getDonors(): Collection
  1400. {
  1401. return $this->donors;
  1402. }
  1403. public function addDonor(Donor $donor): self
  1404. {
  1405. if (!$this->donors->contains($donor)) {
  1406. $this->donors[] = $donor;
  1407. $donor->setOrganization($this);
  1408. }
  1409. return $this;
  1410. }
  1411. public function removeDonor(Donor $donor): self
  1412. {
  1413. if ($this->donors->removeElement($donor)) {
  1414. // set the owning side to null (unless already changed)
  1415. if ($donor->getOrganization() === $this) {
  1416. $donor->setOrganization(null);
  1417. }
  1418. }
  1419. return $this;
  1420. }
  1421. // public function getOnlineRegistrationSettings(): \App\Entity\Organization\OnlineRegistrationSettings
  1422. // {
  1423. // return $this->onlineRegistrationSettings;
  1424. // }
  1425. //
  1426. // public function setOnlineRegistrationSettings(\App\Entity\Organization\OnlineRegistrationSettings $onlineRegistrationSettings): void
  1427. // {
  1428. // $this->onlineRegistrationSettings = $onlineRegistrationSettings;
  1429. // }
  1430. /**
  1431. * @return Collection<int, Tagg>
  1432. */
  1433. public function getTags(): Collection
  1434. {
  1435. return $this->tags;
  1436. }
  1437. public function addTag(Tagg $tag): self
  1438. {
  1439. if (!$this->tags->contains($tag)) {
  1440. $this->tags[] = $tag;
  1441. }
  1442. return $this;
  1443. }
  1444. public function removeTag(Tagg $tag): self
  1445. {
  1446. $this->tags->removeElement($tag);
  1447. return $this;
  1448. }
  1449. public function getRewards(): Collection
  1450. {
  1451. return $this->rewards;
  1452. }
  1453. public function addReward(Reward $rewards): self
  1454. {
  1455. if (!$this->rewards->contains($rewards)) {
  1456. $this->rewards[] = $rewards;
  1457. $rewards->setOrganization($this);
  1458. }
  1459. return $this;
  1460. }
  1461. public function removeReward(Reward $rewards): self
  1462. {
  1463. if ($this->rewards->removeElement($rewards)) {
  1464. // set the owning side to null (unless already changed)
  1465. if ($rewards->getOrganization() === $this) {
  1466. $rewards->setOrganization(null);
  1467. }
  1468. }
  1469. return $this;
  1470. }
  1471. }