Organization.php 51 KB

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