Organization.php 50 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864
  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. // set the owning side of the relation if necessary
  387. if ($parameters->getOrganization() !== $this) {
  388. $parameters->setOrganization($this);
  389. }
  390. $this->parameters = $parameters;
  391. return $this;
  392. }
  393. public function getLogo(): ?File
  394. {
  395. return $this->logo;
  396. }
  397. public function setLogo(?File $logo): void
  398. {
  399. $this->logo = $logo;
  400. }
  401. public function getBillingSetting(): BillingSetting
  402. {
  403. return $this->billingSetting;
  404. }
  405. public function setBillingSetting(BillingSetting $billingSetting): self
  406. {
  407. $this->billingSetting = $billingSetting;
  408. return $this;
  409. }
  410. public function getDescription(): ?string
  411. {
  412. return $this->description;
  413. }
  414. public function setDescription(?string $description): self
  415. {
  416. $this->description = $description;
  417. return $this;
  418. }
  419. public function getCreationDate(): ?\DateTimeInterface
  420. {
  421. return $this->creationDate;
  422. }
  423. public function setCreationDate(?\DateTimeInterface $creationDate): self
  424. {
  425. $this->creationDate = $creationDate;
  426. return $this;
  427. }
  428. public function getDeclarationDate(): ?\DateTimeInterface
  429. {
  430. return $this->declarationDate;
  431. }
  432. public function setDeclarationDate(?\DateTimeInterface $declarationDate): self
  433. {
  434. $this->declarationDate = $declarationDate;
  435. return $this;
  436. }
  437. public function getSiretNumber(): ?string
  438. {
  439. return $this->siretNumber;
  440. }
  441. public function setSiretNumber(?string $siretNumber): self
  442. {
  443. $this->siretNumber = $siretNumber;
  444. return $this;
  445. }
  446. public function getWaldecNumber(): ?string
  447. {
  448. return $this->waldecNumber;
  449. }
  450. public function setWaldecNumber(?string $waldecNumber): self
  451. {
  452. $this->waldecNumber = $waldecNumber;
  453. return $this;
  454. }
  455. public function getVolumeAndFolioNumber(): ?string
  456. {
  457. return $this->volumeAndFolioNumber;
  458. }
  459. public function setVolumeAndFolioNumber(?string $volumeAndFolioNumber): self
  460. {
  461. $this->volumeAndFolioNumber = $volumeAndFolioNumber;
  462. return $this;
  463. }
  464. public function getApeNumber(): ?string
  465. {
  466. return $this->apeNumber;
  467. }
  468. public function setApeNumber(?string $apeNumber): self
  469. {
  470. $this->apeNumber = $apeNumber;
  471. return $this;
  472. }
  473. public function getTvaNumber(): ?string
  474. {
  475. return $this->tvaNumber;
  476. }
  477. public function setTvaNumber(?string $tvaNumber): self
  478. {
  479. $this->tvaNumber = $tvaNumber;
  480. return $this;
  481. }
  482. public function getOtherType(): ?string
  483. {
  484. return $this->otherType;
  485. }
  486. public function setOtherType(?string $otherType): self
  487. {
  488. $this->otherType = $otherType;
  489. return $this;
  490. }
  491. public function getAcronym(): ?string
  492. {
  493. return $this->acronym;
  494. }
  495. public function setAcronym(?string $acronym): self
  496. {
  497. $this->acronym = $acronym;
  498. return $this;
  499. }
  500. public function getFacebook(): ?string
  501. {
  502. return $this->facebook;
  503. }
  504. public function setFacebook(?string $facebook): self
  505. {
  506. $this->facebook = $facebook;
  507. return $this;
  508. }
  509. public function getTwitter(): ?string
  510. {
  511. return $this->twitter;
  512. }
  513. public function setTwitter(?string $twitter): self
  514. {
  515. $this->twitter = $twitter;
  516. return $this;
  517. }
  518. public function getYoutube(): ?string
  519. {
  520. return $this->youtube;
  521. }
  522. public function setYoutube(?string $youtube): self
  523. {
  524. $this->youtube = $youtube;
  525. return $this;
  526. }
  527. public function getInstagram(): ?string
  528. {
  529. return $this->instagram;
  530. }
  531. public function setInstagram(?string $instagram): self
  532. {
  533. $this->instagram = $instagram;
  534. return $this;
  535. }
  536. public function getCollectiveAgreement(): ?string
  537. {
  538. return $this->collectiveAgreement;
  539. }
  540. public function setCollectiveAgreement(?string $collectiveAgreement): self
  541. {
  542. $this->collectiveAgreement = $collectiveAgreement;
  543. return $this;
  544. }
  545. public function getOpca(): ?OpcaEnum
  546. {
  547. return $this->opca;
  548. }
  549. public function setOpca(?OpcaEnum $opca): self
  550. {
  551. $this->opca = $opca;
  552. return $this;
  553. }
  554. public function getIcomNumber(): ?string
  555. {
  556. return $this->icomNumber;
  557. }
  558. public function setIcomNumber(?string $icomNumber): self
  559. {
  560. $this->icomNumber = $icomNumber;
  561. return $this;
  562. }
  563. public function getUrssafNumber(): ?string
  564. {
  565. return $this->urssafNumber;
  566. }
  567. public function setUrssafNumber(?string $urssafNumber): self
  568. {
  569. $this->urssafNumber = $urssafNumber;
  570. return $this;
  571. }
  572. public function getYoungApproval(): ?string
  573. {
  574. return $this->youngApproval;
  575. }
  576. public function setYoungApproval(?string $youngApproval): self
  577. {
  578. $this->youngApproval = $youngApproval;
  579. return $this;
  580. }
  581. public function getTrainingApproval(): ?string
  582. {
  583. return $this->trainingApproval;
  584. }
  585. public function setTrainingApproval(?string $trainingApproval): self
  586. {
  587. $this->trainingApproval = $trainingApproval;
  588. return $this;
  589. }
  590. public function getOtherApproval(): ?string
  591. {
  592. return $this->otherApproval;
  593. }
  594. public function setOtherApproval(?string $otherApproval): self
  595. {
  596. $this->otherApproval = $otherApproval;
  597. return $this;
  598. }
  599. public function getPrefectureName(): ?string
  600. {
  601. return $this->prefectureName;
  602. }
  603. public function setPrefectureName(?string $prefectureName): self
  604. {
  605. $this->prefectureName = $prefectureName;
  606. return $this;
  607. }
  608. public function getPrefectureNumber(): ?string
  609. {
  610. return $this->prefectureNumber;
  611. }
  612. public function setPrefectureNumber(?string $prefectureNumber): self
  613. {
  614. $this->prefectureNumber = $prefectureNumber;
  615. return $this;
  616. }
  617. public function getCategory(): ?CategoryEnum
  618. {
  619. return $this->category;
  620. }
  621. public function setCategory(?CategoryEnum $category): self
  622. {
  623. $this->category = $category;
  624. return $this;
  625. }
  626. public function getSchoolCategory(): ?SchoolCategoryEnum
  627. {
  628. return $this->schoolCategory;
  629. }
  630. public function setSchoolCategory(?SchoolCategoryEnum $schoolCategory): self
  631. {
  632. $this->schoolCategory = $schoolCategory;
  633. return $this;
  634. }
  635. public function getTypeEstablishment(): ?TypeEstablishmentEnum
  636. {
  637. return $this->typeEstablishment;
  638. }
  639. public function setTypeEstablishment(?TypeEstablishmentEnum $typeEstablishment): self
  640. {
  641. $this->typeEstablishment = $typeEstablishment;
  642. return $this;
  643. }
  644. public function getTypeEstablishmentDetail(): ?TypeEstablishmentDetailEnum
  645. {
  646. return $this->typeEstablishmentDetail;
  647. }
  648. public function setTypeEstablishmentDetail(?TypeEstablishmentDetailEnum $typeEstablishmentDetail): self
  649. {
  650. $this->typeEstablishmentDetail = $typeEstablishmentDetail;
  651. return $this;
  652. }
  653. public function getBudget(): ?float
  654. {
  655. return $this->budget;
  656. }
  657. public function setBudget(?float $budget): self
  658. {
  659. $this->budget = $budget;
  660. return $this;
  661. }
  662. public function getIsPedagogicIsPrincipalActivity(): ?bool
  663. {
  664. return $this->isPedagogicIsPrincipalActivity;
  665. }
  666. public function setIsPedagogicIsPrincipalActivity(?bool $isPedagogicIsPrincipalActivity): self
  667. {
  668. $this->isPedagogicIsPrincipalActivity = $isPedagogicIsPrincipalActivity;
  669. return $this;
  670. }
  671. public function getPedagogicBudget(): ?float
  672. {
  673. return $this->pedagogicBudget;
  674. }
  675. public function setPedagogicBudget(?float $pedagogicBudget): self
  676. {
  677. $this->pedagogicBudget = $pedagogicBudget;
  678. return $this;
  679. }
  680. public function getIsPerformanceContractor(): ?bool
  681. {
  682. return $this->isPerformanceContractor;
  683. }
  684. public function setIsPerformanceContractor(?bool $isPerformanceContractor): self
  685. {
  686. $this->isPerformanceContractor = $isPerformanceContractor;
  687. return $this;
  688. }
  689. public function getFfecApproval(): ?string
  690. {
  691. return $this->ffecApproval;
  692. }
  693. public function setFfecApproval(?string $ffecApproval): self
  694. {
  695. $this->ffecApproval = $ffecApproval;
  696. return $this;
  697. }
  698. public function getPortailVisibility(): bool
  699. {
  700. return $this->portailVisibility;
  701. }
  702. public function setPortailVisibility(bool $portailVisibility): self
  703. {
  704. $this->portailVisibility = $portailVisibility;
  705. return $this;
  706. }
  707. public function getCmsId(): ?int
  708. {
  709. return $this->cmsId;
  710. }
  711. public function setCmsId(?int $cmsId): self
  712. {
  713. $this->cmsId = $cmsId;
  714. return $this;
  715. }
  716. public function setImage(?File $image): self
  717. {
  718. $this->image = $image;
  719. return $this;
  720. }
  721. public function getImage(): ?File
  722. {
  723. return $this->image;
  724. }
  725. public function getTypeOfPractices(): Collection
  726. {
  727. return $this->typeOfPractices;
  728. }
  729. public function addTypeOfPractice(TypeOfPractice $typeOfPractice): self
  730. {
  731. if (!$this->typeOfPractices->contains($typeOfPractice)) {
  732. $this->typeOfPractices[] = $typeOfPractice;
  733. $typeOfPractice->addOrganization($this);
  734. }
  735. return $this;
  736. }
  737. public function removeTypeOfPractice(TypeOfPractice $typeOfPractice): self
  738. {
  739. if ($this->typeOfPractices->removeElement($typeOfPractice)) {
  740. $typeOfPractice->removeOrganization($this);
  741. }
  742. return $this;
  743. }
  744. public function getOtherPractice(): ?string
  745. {
  746. return $this->otherPractice;
  747. }
  748. public function setOtherPractice(?string $otherPractice): self
  749. {
  750. $this->otherPractice = $otherPractice;
  751. return $this;
  752. }
  753. public function getContactPoints(): Collection
  754. {
  755. return $this->contactPoints;
  756. }
  757. public function addContactPoint(ContactPoint $contactPoint): self
  758. {
  759. if (!$this->contactPoints->contains($contactPoint)) {
  760. $this->contactPoints[] = $contactPoint;
  761. $contactPoint->addOrganization($this);
  762. }
  763. return $this;
  764. }
  765. public function removeContactPoint(ContactPoint $contactPoint): self
  766. {
  767. if ($this->contactPoints->removeElement($contactPoint)) {
  768. $contactPoint->removeOrganization($this);
  769. }
  770. return $this;
  771. }
  772. public function getBankAccounts(): Collection
  773. {
  774. return $this->bankAccounts;
  775. }
  776. public function addBankAccount(BankAccount $bankAccount): self
  777. {
  778. if (!$this->bankAccounts->contains($bankAccount)) {
  779. $this->bankAccounts[] = $bankAccount;
  780. $bankAccount->addOrganization($this);
  781. }
  782. return $this;
  783. }
  784. public function removeBankAccount(BankAccount $bankAccount): self
  785. {
  786. if ($this->bankAccounts->removeElement($bankAccount)) {
  787. $bankAccount->removeOrganization($this);
  788. }
  789. return $this;
  790. }
  791. public function getOrganizationAddressPostals(): Collection
  792. {
  793. return $this->organizationAddressPostals;
  794. }
  795. public function addOrganizationAddressPostal(OrganizationAddressPostal $organizationAddressPostal): self
  796. {
  797. if (!$this->organizationAddressPostals->contains($organizationAddressPostal)) {
  798. $this->organizationAddressPostals[] = $organizationAddressPostal;
  799. $organizationAddressPostal->setOrganization($this);
  800. }
  801. return $this;
  802. }
  803. public function removeOrganizationAddressPostal(OrganizationAddressPostal $organizationAddressPostal): self
  804. {
  805. if ($this->organizationAddressPostals->removeElement($organizationAddressPostal)) {
  806. // set the owning side to null (unless already changed)
  807. if ($organizationAddressPostal->getOrganization() === $this) {
  808. $organizationAddressPostal->setOrganization(null);
  809. }
  810. }
  811. return $this;
  812. }
  813. public function getOrganizationLicences(): Collection
  814. {
  815. return $this->organizationLicences;
  816. }
  817. public function addOrganizationLicence(OrganizationLicence $organizationLicence): self
  818. {
  819. if (!$this->organizationLicences->contains($organizationLicence)) {
  820. $this->organizationLicences[] = $organizationLicence;
  821. $organizationLicence->setOrganization($this);
  822. }
  823. return $this;
  824. }
  825. public function removeOrganizationLicence(OrganizationLicence $organizationLicence): self
  826. {
  827. if ($this->organizationLicences->removeElement($organizationLicence)) {
  828. // set the owning side to null (unless already changed)
  829. if ($organizationLicence->getOrganization() === $this) {
  830. $organizationLicence->setOrganization(null);
  831. }
  832. }
  833. return $this;
  834. }
  835. public function getOrganizationArticles(): Collection
  836. {
  837. return $this->organizationArticles;
  838. }
  839. public function addOrganizationArticle(OrganizationArticle $organizationArticle): self
  840. {
  841. if (!$this->organizationArticles->contains($organizationArticle)) {
  842. $this->organizationArticles[] = $organizationArticle;
  843. $organizationArticle->setOrganization($this);
  844. }
  845. return $this;
  846. }
  847. public function removeOrganizationArticle(OrganizationArticle $organizationArticle): self
  848. {
  849. if ($this->organizationArticles->removeElement($organizationArticle)) {
  850. // set the owning side to null (unless already changed)
  851. if ($organizationArticle->getOrganization() === $this) {
  852. $organizationArticle->setOrganization(null);
  853. }
  854. }
  855. return $this;
  856. }
  857. public function addCycle(Cycle $cycle): self
  858. {
  859. if (!$this->cycles->contains($cycle)) {
  860. $this->cycles[] = $cycle;
  861. $cycle->setOrganization($this);
  862. }
  863. return $this;
  864. }
  865. public function removeCycle(Cycle $cycle): self
  866. {
  867. if ($this->cycles->removeElement($cycle)) {
  868. // set the owning side to null (unless already changed)
  869. if ($cycle->getOrganization() === $this) {
  870. $cycle->setOrganization(null);
  871. }
  872. }
  873. return $this;
  874. }
  875. public function getCycles(): Collection
  876. {
  877. return $this->cycles;
  878. }
  879. public function addEducationNotationConfig(EducationNotationConfig $educationNotationConfig): self
  880. {
  881. if (!$this->educationNotationConfigs->contains($educationNotationConfig)) {
  882. $this->educationNotationConfigs[] = $educationNotationConfig;
  883. $educationNotationConfig->setOrganization($this);
  884. }
  885. return $this;
  886. }
  887. public function removeEducationNotationConfig(EducationNotationConfig $educationNotationConfig): self
  888. {
  889. if ($this->educationNotationConfigs->removeElement($educationNotationConfig)) {
  890. // set the owning side to null (unless already changed)
  891. if ($educationNotationConfig->getOrganization() === $this) {
  892. $educationNotationConfig->setOrganization(null);
  893. }
  894. }
  895. return $this;
  896. }
  897. public function getEducationNotationConfigs(): Collection
  898. {
  899. return $this->educationNotationConfigs;
  900. }
  901. public function addEducationTiming(EducationTiming $educationTiming): self
  902. {
  903. if (!$this->educationTimings->contains($educationTiming)) {
  904. $this->educationTimings[] = $educationTiming;
  905. $educationTiming->setOrganization($this);
  906. }
  907. return $this;
  908. }
  909. public function removeEducationTiming(EducationTiming $educationTiming): self
  910. {
  911. if ($this->educationTimings->removeElement($educationTiming)) {
  912. // set the owning side to null (unless already changed)
  913. if ($educationTiming->getOrganization() === $this) {
  914. $educationTiming->setOrganization(null);
  915. }
  916. }
  917. return $this;
  918. }
  919. public function getEducationTimings(): Collection
  920. {
  921. return $this->educationTimings;
  922. }
  923. public function getSubdomains(): Collection
  924. {
  925. return $this->subdomains;
  926. }
  927. public function addAccess(Access $access): self
  928. {
  929. if (!$this->accesses->contains($access)) {
  930. $this->accesses[] = $access;
  931. $access->setOrganization($this);
  932. }
  933. return $this;
  934. }
  935. public function removeAccess(Access $access): self
  936. {
  937. if ($this->accesses->removeElement($access)) {
  938. // set the owning side to null (unless already changed)
  939. if ($access->getOrganization() === $this) {
  940. $access->setOrganization(null);
  941. }
  942. }
  943. return $this;
  944. }
  945. public function getContactPerson(): ?Access
  946. {
  947. return $this->contactPerson;
  948. }
  949. public function setContactPerson(?Access $contactPerson): self
  950. {
  951. $this->contactPerson = $contactPerson;
  952. return $this;
  953. }
  954. /**
  955. * @return Collection<int, OrganizationHoliday>
  956. */
  957. public function getHolidays(): Collection
  958. {
  959. return $this->holidays;
  960. }
  961. public function addHoliday(OrganizationHoliday $holiday): self
  962. {
  963. if (!$this->holidays->contains($holiday)) {
  964. $this->holidays[] = $holiday;
  965. $holiday->setOrganization($this);
  966. }
  967. return $this;
  968. }
  969. public function removeHoliday(OrganizationHoliday $holiday): self
  970. {
  971. if ($this->holidays->removeElement($holiday)) {
  972. // set the owning side to null (unless already changed)
  973. if ($holiday->getOrganization() === $this) {
  974. $holiday->setOrganization(null);
  975. }
  976. }
  977. return $this;
  978. }
  979. /**
  980. * @return Collection<int, Course>
  981. */
  982. public function getCourses(): Collection
  983. {
  984. return $this->courses;
  985. }
  986. public function addCourse(Course $course): self
  987. {
  988. if (!$this->courses->contains($course)) {
  989. $this->courses[] = $course;
  990. $course->setOrganization($this);
  991. }
  992. return $this;
  993. }
  994. public function removeCourse(Course $course): self
  995. {
  996. if ($this->courses->removeElement($course)) {
  997. // set the owning side to null (unless already changed)
  998. if ($course->getOrganization() === $this) {
  999. $course->setOrganization(null);
  1000. }
  1001. }
  1002. return $this;
  1003. }
  1004. /**
  1005. * @return Collection<int, EducationalProject>
  1006. */
  1007. public function getEducationalProjects(): Collection
  1008. {
  1009. return $this->educationalProjects;
  1010. }
  1011. public function addEducationalProject(EducationalProject $educationalProject): self
  1012. {
  1013. if (!$this->educationalProjects->contains($educationalProject)) {
  1014. $this->educationalProjects[] = $educationalProject;
  1015. $educationalProject->setOrganization($this);
  1016. }
  1017. return $this;
  1018. }
  1019. public function removeEducationalProject(EducationalProject $educationalProject): self
  1020. {
  1021. if ($this->educationalProjects->removeElement($educationalProject)) {
  1022. // set the owning side to null (unless already changed)
  1023. if ($educationalProject->getOrganization() === $this) {
  1024. $educationalProject->setOrganization(null);
  1025. }
  1026. }
  1027. return $this;
  1028. }
  1029. /**
  1030. * @return Collection<int, Event>
  1031. */
  1032. public function getEvents(): Collection
  1033. {
  1034. return $this->events;
  1035. }
  1036. public function addEvent(Event $event): self
  1037. {
  1038. if (!$this->events->contains($event)) {
  1039. $this->events[] = $event;
  1040. $event->setOrganization($this);
  1041. }
  1042. return $this;
  1043. }
  1044. public function removeEvent(Event $event): self
  1045. {
  1046. if ($this->events->removeElement($event)) {
  1047. // set the owning side to null (unless already changed)
  1048. if ($event->getOrganization() === $this) {
  1049. $event->setOrganization(null);
  1050. }
  1051. }
  1052. return $this;
  1053. }
  1054. /**
  1055. * @return Collection<int, Examen>
  1056. */
  1057. public function getExamens(): Collection
  1058. {
  1059. return $this->examens;
  1060. }
  1061. public function addExamen(Examen $examen): self
  1062. {
  1063. if (!$this->examens->contains($examen)) {
  1064. $this->examens[] = $examen;
  1065. $examen->setOrganization($this);
  1066. }
  1067. return $this;
  1068. }
  1069. public function removeExamen(Examen $examen): self
  1070. {
  1071. if ($this->examens->removeElement($examen)) {
  1072. // set the owning side to null (unless already changed)
  1073. if ($examen->getOrganization() === $this) {
  1074. $examen->setOrganization(null);
  1075. }
  1076. }
  1077. return $this;
  1078. }
  1079. /**
  1080. * @return Collection<int, CriteriaNotation>
  1081. */
  1082. public function getCritereNotations(): Collection
  1083. {
  1084. return $this->critereNotations;
  1085. }
  1086. public function addCritereNotation(CriteriaNotation $critereNotation): self
  1087. {
  1088. if (!$this->critereNotations->contains($critereNotation)) {
  1089. $this->critereNotations[] = $critereNotation;
  1090. $critereNotation->setOrganization($this);
  1091. }
  1092. return $this;
  1093. }
  1094. public function removeCritereNotation(CriteriaNotation $critereNotation): self
  1095. {
  1096. if ($this->critereNotations->removeElement($critereNotation)) {
  1097. // set the owning side to null (unless already changed)
  1098. if ($critereNotation->getOrganization() === $this) {
  1099. $critereNotation->setOrganization(null);
  1100. }
  1101. }
  1102. return $this;
  1103. }
  1104. /**
  1105. * @return Collection<int, EducationCategory>
  1106. */
  1107. public function getEducationCategories(): Collection
  1108. {
  1109. return $this->educationCategories;
  1110. }
  1111. public function addEducationCategory(EducationCategory $educationCategory): self
  1112. {
  1113. if (!$this->educationCategories->contains($educationCategory)) {
  1114. $this->educationCategories[] = $educationCategory;
  1115. $educationCategory->setOrganization($this);
  1116. }
  1117. return $this;
  1118. }
  1119. public function removeEducationCategory(EducationCategory $educationCategory): self
  1120. {
  1121. if ($this->educationCategories->removeElement($educationCategory)) {
  1122. // set the owning side to null (unless already changed)
  1123. if ($educationCategory->getOrganization() === $this) {
  1124. $educationCategory->setOrganization(null);
  1125. }
  1126. }
  1127. return $this;
  1128. }
  1129. /**
  1130. * @return Collection<int, PeriodNotation>
  1131. */
  1132. public function getPeriodNotations(): Collection
  1133. {
  1134. return $this->periodNotations;
  1135. }
  1136. public function addPeriodNotation(PeriodNotation $periodNotation): self
  1137. {
  1138. if (!$this->periodNotations->contains($periodNotation)) {
  1139. $this->periodNotations[] = $periodNotation;
  1140. $periodNotation->setOrganization($this);
  1141. }
  1142. return $this;
  1143. }
  1144. public function removePeriodNotation(PeriodNotation $periodNotation): self
  1145. {
  1146. if ($this->periodNotations->removeElement($periodNotation)) {
  1147. // set the owning side to null (unless already changed)
  1148. if ($periodNotation->getOrganization() === $this) {
  1149. $periodNotation->setOrganization(null);
  1150. }
  1151. }
  1152. return $this;
  1153. }
  1154. /**
  1155. * @return Collection<int, File>
  1156. */
  1157. public function getFiles(): Collection
  1158. {
  1159. return $this->files;
  1160. }
  1161. public function addFile(File $file): self
  1162. {
  1163. if (!$this->files->contains($file)) {
  1164. $this->files[] = $file;
  1165. $file->setOrganization($this);
  1166. }
  1167. return $this;
  1168. }
  1169. public function removeFile(File $file): self
  1170. {
  1171. if ($this->files->removeElement($file)) {
  1172. // set the owning side to null (unless already changed)
  1173. if ($file->getOrganization() === $this) {
  1174. $file->setOrganization(null);
  1175. }
  1176. }
  1177. return $this;
  1178. }
  1179. /**
  1180. * @return Collection<int, Notification>
  1181. */
  1182. public function getNotifications(): Collection
  1183. {
  1184. return $this->notifications;
  1185. }
  1186. public function addNotification(Notification $notification): self
  1187. {
  1188. if (!$this->notifications->contains($notification)) {
  1189. $this->notifications[] = $notification;
  1190. $notification->setRecipientOrganization($this);
  1191. }
  1192. return $this;
  1193. }
  1194. public function removeNotification(Notification $notification): self
  1195. {
  1196. if ($this->notifications->removeElement($notification)) {
  1197. // set the owning side to null (unless already changed)
  1198. if ($notification->getRecipientOrganization() === $this) {
  1199. $notification->setRecipientOrganization(null);
  1200. }
  1201. }
  1202. return $this;
  1203. }
  1204. /**
  1205. * @return Collection<int, Email>
  1206. */
  1207. public function getEmails(): Collection
  1208. {
  1209. return $this->emails;
  1210. }
  1211. /**
  1212. * @return Collection<int, Mail>
  1213. */
  1214. public function getMails(): Collection
  1215. {
  1216. return $this->mails;
  1217. }
  1218. /**
  1219. * @return Collection<int, Sms>
  1220. */
  1221. public function getSms(): Collection
  1222. {
  1223. return $this->sms;
  1224. }
  1225. /**
  1226. * @return Collection<int, Activity>
  1227. */
  1228. public function getActivities(): Collection
  1229. {
  1230. return $this->activities;
  1231. }
  1232. public function addActivity(Activity $activity): self
  1233. {
  1234. if (!$this->activities->contains($activity)) {
  1235. $this->activities[] = $activity;
  1236. $activity->setOrganization($this);
  1237. }
  1238. return $this;
  1239. }
  1240. public function removeActivity(Activity $activity): self
  1241. {
  1242. if ($this->activities->removeElement($activity)) {
  1243. // set the owning side to null (unless already changed)
  1244. if ($activity->getOrganization() === $this) {
  1245. $activity->setOrganization(null);
  1246. }
  1247. }
  1248. return $this;
  1249. }
  1250. /**
  1251. * @return Collection<int, Jury>
  1252. */
  1253. public function getJuries(): Collection
  1254. {
  1255. return $this->juries;
  1256. }
  1257. public function addJury(Jury $jury): self
  1258. {
  1259. if (!$this->juries->contains($jury)) {
  1260. $this->juries[] = $jury;
  1261. $jury->setOrganization($this);
  1262. }
  1263. return $this;
  1264. }
  1265. public function removeJury(Jury $jury): self
  1266. {
  1267. if ($this->juries->removeElement($jury)) {
  1268. // set the owning side to null (unless already changed)
  1269. if ($jury->getOrganization() === $this) {
  1270. $jury->setOrganization(null);
  1271. }
  1272. }
  1273. return $this;
  1274. }
  1275. /**
  1276. * @return Collection<int, Commission>
  1277. */
  1278. public function getCommissions(): Collection
  1279. {
  1280. return $this->commissions;
  1281. }
  1282. public function addCommission(Commission $commission): self
  1283. {
  1284. if (!$this->commissions->contains($commission)) {
  1285. $this->commissions[] = $commission;
  1286. $commission->setOrganization($this);
  1287. }
  1288. return $this;
  1289. }
  1290. public function removeCommission(Commission $commission): self
  1291. {
  1292. if ($this->commissions->removeElement($commission)) {
  1293. // set the owning side to null (unless already changed)
  1294. if ($commission->getOrganization() === $this) {
  1295. $commission->setOrganization(null);
  1296. }
  1297. }
  1298. return $this;
  1299. }
  1300. /**
  1301. * @return Collection<int, Place>
  1302. */
  1303. public function getPlaces(): Collection
  1304. {
  1305. return $this->places;
  1306. }
  1307. public function addPlace(Place $place): self
  1308. {
  1309. if (!$this->places->contains($place)) {
  1310. $this->places[] = $place;
  1311. $place->setOrganization($this);
  1312. }
  1313. return $this;
  1314. }
  1315. public function removePlace(Place $place): self
  1316. {
  1317. if ($this->places->removeElement($place)) {
  1318. // set the owning side to null (unless already changed)
  1319. if ($place->getOrganization() === $this) {
  1320. $place->setOrganization(null);
  1321. }
  1322. }
  1323. return $this;
  1324. }
  1325. /**
  1326. * @return Collection<int, Attendance>
  1327. */
  1328. public function getAttendances(): Collection
  1329. {
  1330. return $this->attendances;
  1331. }
  1332. public function addAttendance(Attendance $attendance): self
  1333. {
  1334. if (!$this->attendances->contains($attendance)) {
  1335. $this->attendances[] = $attendance;
  1336. $attendance->setOrganization($this);
  1337. }
  1338. return $this;
  1339. }
  1340. public function removeAttendance(Attendance $attendance): self
  1341. {
  1342. if ($this->attendances->removeElement($attendance)) {
  1343. // set the owning side to null (unless already changed)
  1344. if ($attendance->getOrganization() === $this) {
  1345. $attendance->setOrganization(null);
  1346. }
  1347. }
  1348. return $this;
  1349. }
  1350. /**
  1351. * @return Collection<int, Equipment>
  1352. */
  1353. public function getEquipments(): Collection
  1354. {
  1355. return $this->equipments;
  1356. }
  1357. public function addEquipment(Equipment $equipment): self
  1358. {
  1359. if (!$this->equipments->contains($equipment)) {
  1360. $this->equipments[] = $equipment;
  1361. $equipment->setOrganization($this);
  1362. }
  1363. return $this;
  1364. }
  1365. public function removeEquipment(Equipment $equipment): self
  1366. {
  1367. if ($this->equipments->removeElement($equipment)) {
  1368. // set the owning side to null (unless already changed)
  1369. if ($equipment->getOrganization() === $this) {
  1370. $equipment->setOrganization(null);
  1371. }
  1372. }
  1373. return $this;
  1374. }
  1375. /**
  1376. * @return Collection<int, Intangible>
  1377. */
  1378. public function getIntangibles(): Collection
  1379. {
  1380. return $this->intangibles;
  1381. }
  1382. public function addIntangible(Intangible $intangible): self
  1383. {
  1384. if (!$this->intangibles->contains($intangible)) {
  1385. $this->intangibles[] = $intangible;
  1386. $intangible->setOrganization($this);
  1387. }
  1388. return $this;
  1389. }
  1390. public function removeIntangible(Intangible $intangible): self
  1391. {
  1392. if ($this->intangibles->removeElement($intangible)) {
  1393. // set the owning side to null (unless already changed)
  1394. if ($intangible->getOrganization() === $this) {
  1395. $intangible->setOrganization(null);
  1396. }
  1397. }
  1398. return $this;
  1399. }
  1400. /**
  1401. * @return Collection<int, Donor>
  1402. */
  1403. public function getDonors(): Collection
  1404. {
  1405. return $this->donors;
  1406. }
  1407. public function addDonor(Donor $donor): self
  1408. {
  1409. if (!$this->donors->contains($donor)) {
  1410. $this->donors[] = $donor;
  1411. $donor->setOrganization($this);
  1412. }
  1413. return $this;
  1414. }
  1415. public function removeDonor(Donor $donor): self
  1416. {
  1417. if ($this->donors->removeElement($donor)) {
  1418. // set the owning side to null (unless already changed)
  1419. if ($donor->getOrganization() === $this) {
  1420. $donor->setOrganization(null);
  1421. }
  1422. }
  1423. return $this;
  1424. }
  1425. // public function getOnlineRegistrationSettings(): \App\Entity\Organization\OnlineRegistrationSettings
  1426. // {
  1427. // return $this->onlineRegistrationSettings;
  1428. // }
  1429. //
  1430. // public function setOnlineRegistrationSettings(\App\Entity\Organization\OnlineRegistrationSettings $onlineRegistrationSettings): void
  1431. // {
  1432. // $this->onlineRegistrationSettings = $onlineRegistrationSettings;
  1433. // }
  1434. /**
  1435. * @return Collection<int, Tagg>
  1436. */
  1437. public function getTags(): Collection
  1438. {
  1439. return $this->tags;
  1440. }
  1441. public function addTag(Tagg $tag): self
  1442. {
  1443. if (!$this->tags->contains($tag)) {
  1444. $this->tags[] = $tag;
  1445. }
  1446. return $this;
  1447. }
  1448. public function removeTag(Tagg $tag): self
  1449. {
  1450. $this->tags->removeElement($tag);
  1451. return $this;
  1452. }
  1453. public function getRewards(): Collection
  1454. {
  1455. return $this->rewards;
  1456. }
  1457. public function addReward(Reward $rewards): self
  1458. {
  1459. if (!$this->rewards->contains($rewards)) {
  1460. $this->rewards[] = $rewards;
  1461. $rewards->setOrganization($this);
  1462. }
  1463. return $this;
  1464. }
  1465. public function removeReward(Reward $rewards): self
  1466. {
  1467. if ($this->rewards->removeElement($rewards)) {
  1468. // set the owning side to null (unless already changed)
  1469. if ($rewards->getOrganization() === $this) {
  1470. $rewards->setOrganization(null);
  1471. }
  1472. }
  1473. return $this;
  1474. }
  1475. }