Organization.php 50 KB

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