Organization.php 49 KB

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