| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869 |
- <?php
- declare(strict_types=1);
- namespace App\Entity\Organization;
- use ApiPlatform\Metadata\ApiResource;
- use ApiPlatform\Metadata\Get;
- use App\Entity\Access\Access;
- use App\Entity\Billing\BillingSetting;
- use App\Entity\Booking\Attendance;
- use App\Entity\Booking\Course;
- use App\Entity\Booking\EducationalProject;
- use App\Entity\Booking\Event;
- use App\Entity\Booking\Examen;
- use App\Entity\Booking\OrganizationHoliday;
- use App\Entity\Core\BankAccount;
- use App\Entity\Core\ContactPoint;
- use App\Entity\Core\File;
- use App\Entity\Core\Notification;
- use App\Entity\Core\Tagg;
- use App\Entity\Donor\Donor;
- use App\Entity\Education\CriteriaNotation;
- use App\Entity\Education\Cycle;
- use App\Entity\Education\EducationCategory;
- use App\Entity\Education\EducationNotationConfig;
- use App\Entity\Education\EducationTiming;
- use App\Entity\Education\PeriodNotation;
- use App\Entity\Message\Email;
- use App\Entity\Message\Mail;
- use App\Entity\Message\Sms;
- use App\Entity\Network\NetworkOrganization;
- use App\Entity\Person\Commission;
- use App\Entity\Place\Place;
- use App\Entity\Product\Equipment;
- use App\Entity\Product\Intangible;
- use App\Entity\Reward\Reward;
- use App\Enum\Organization\CategoryEnum;
- use App\Enum\Organization\LegalEnum;
- use App\Enum\Organization\OpcaEnum;
- use App\Enum\Organization\PrincipalTypeEnum;
- use App\Enum\Organization\SchoolCategoryEnum;
- use App\Enum\Organization\TypeEstablishmentDetailEnum;
- use App\Enum\Organization\TypeEstablishmentEnum;
- use App\Repository\Organization\OrganizationRepository;
- // use DH\Auditor\Provider\Doctrine\Auditing\Annotation\Auditable;
- use Doctrine\Common\Collections\ArrayCollection;
- use Doctrine\Common\Collections\Collection;
- use Doctrine\ORM\Mapping as ORM;
- use JetBrains\PhpStorm\Pure;
- /**
- * Structure, organisation.
- *
- * Security :
- *
- * * @see App\Doctrine\Organization\CurrentOrganizationExtension
- */
- #[ApiResource(operations: [
- new Get(security: 'object.getId() == user.getOrganization().getId()'),
- ])] //
- // #[Auditable]
- #[ORM\Entity(repositoryClass: OrganizationRepository::class)]
- class Organization
- {
- #[ORM\Id]
- #[ORM\Column]
- #[ORM\GeneratedValue]
- private ?int $id = null;
- #[ORM\Column(length: 128, nullable: false)]
- public string $name;
- #[ORM\Column(length: 128)]
- private string $identifier;
- #[ORM\Column(length: 50, nullable: true, enumType: LegalEnum::class)]
- private ?LegalEnum $legalStatus = null;
- #[ORM\Column(length: 255, nullable: false, enumType: PrincipalTypeEnum::class)]
- private PrincipalTypeEnum $principalType;
- #[ORM\OneToOne(mappedBy: 'organization', cascade: ['persist', 'remove'])]
- private Settings $settings;
- #[ORM\OneToMany(mappedBy: 'organization', targetEntity: Access::class, cascade: ['persist'], orphanRemoval: true)]
- private Collection $accesses;
- #[ORM\OneToMany(mappedBy: 'organization', targetEntity: NetworkOrganization::class, cascade: ['persist'], orphanRemoval: true)]
- private Collection $networkOrganizations;
- #[ORM\OneToMany(mappedBy: 'parent', targetEntity: NetworkOrganization::class, orphanRemoval: true)]
- private Collection $networkOrganizationChildren;
- #[ORM\OneToMany(mappedBy: 'organization', targetEntity: EducationNotationConfig::class, orphanRemoval: true)]
- private Collection $educationNotationConfigs;
- #[ORM\OneToOne(inversedBy: 'organization', targetEntity: Parameters::class, cascade: ['persist'])]
- #[ORM\JoinColumn(nullable: false)]
- private Parameters $parameters;
- #[ORM\OneToOne(mappedBy: 'organization', cascade: ['persist', 'remove'], orphanRemoval: true)]
- private BillingSetting $billingSetting;
- #[ORM\Column(type: 'text', nullable: true)]
- private ?string $description = null;
- #[ORM\Column(type: 'date', nullable: true)]
- private ?\DateTimeInterface $creationDate = null;
- #[ORM\Column(type: 'date', nullable: true)]
- private ?\DateTimeInterface $declarationDate = null;
- #[ORM\Column(length: 14, nullable: true)]
- private ?string $siretNumber = null;
- #[ORM\Column(length: 10, nullable: true)]
- private ?string $waldecNumber = null;
- #[ORM\Column(length: 255, nullable: true)]
- private ?string $volumeAndFolioNumber = null;
- #[ORM\Column(length: 5, nullable: true)]
- private ?string $apeNumber = null;
- #[ORM\Column(length: 50, nullable: true)]
- private ?string $tvaNumber = null;
- #[ORM\Column(length: 40, nullable: true)]
- private ?string $otherType = null;
- #[ORM\Column(length: 80, nullable: true)]
- private ?string $acronym = null;
- #[ORM\Column(length: 255, nullable: true)]
- private ?string $facebook = null;
- #[ORM\Column(length: 255, nullable: true)]
- private ?string $twitter = null;
- #[ORM\Column(length: 255, nullable: true)]
- private ?string $youtube = null;
- #[ORM\Column(length: 255, nullable: true)]
- private ?string $instagram = null;
- #[ORM\Column(length: 35, nullable: true)]
- private ?string $collectiveAgreement = null;
- #[ORM\Column(length: 50, nullable: true, enumType: OpcaEnum::class)]
- private ?OpcaEnum $opca = null;
- #[ORM\Column(length: 35, nullable: true)]
- private ?string $icomNumber = null;
- #[ORM\Column(length: 35, nullable: true)]
- private ?string $urssafNumber = null;
- #[ORM\Column(length: 20, nullable: true)]
- private ?string $youngApproval = null;
- #[ORM\Column(length: 20, nullable: true)]
- private ?string $trainingApproval = null;
- #[ORM\Column(length: 50, nullable: true)]
- private ?string $otherApproval = null;
- #[ORM\Column(length: 35, nullable: true)]
- private ?string $prefectureName = null;
- #[ORM\Column(length: 20, nullable: true)]
- private ?string $prefectureNumber = null;
- #[ORM\Column(length: 50, nullable: true, enumType: CategoryEnum::class)]
- private ?CategoryEnum $category = null;
- #[ORM\Column(length: 50, nullable: true, enumType: SchoolCategoryEnum::class)]
- private ?SchoolCategoryEnum $schoolCategory = null;
- #[ORM\Column(length: 50, nullable: true, enumType: TypeEstablishmentEnum::class)]
- private ?TypeEstablishmentEnum $typeEstablishment = null;
- #[ORM\Column(length: 50, nullable: true, enumType: TypeEstablishmentDetailEnum::class)]
- private ?TypeEstablishmentDetailEnum $typeEstablishmentDetail = null;
- #[ORM\Column(nullable: true)]
- private ?float $budget = null;
- #[ORM\Column(nullable: true)]
- private ?bool $isPedagogicIsPrincipalActivity = null;
- #[ORM\Column(nullable: true)]
- private ?float $pedagogicBudget = null;
- #[ORM\Column(nullable: true)]
- private ?bool $isPerformanceContractor = null;
- #[ORM\Column(length: 20, nullable: true)]
- private ?string $ffecApproval = null;
- #[ORM\Column]
- private bool $portailVisibility = true;
- #[ORM\Column(nullable: true)]
- private ?int $cmsId = null;
- #[ORM\ManyToOne(inversedBy: 'organizationLogos')]
- #[ORM\JoinColumn(referencedColumnName: 'id', nullable: true, onDelete: 'SET NULL')]
- private ?File $logo = null;
- #[ORM\ManyToOne(inversedBy: 'organizationImages')]
- #[ORM\JoinColumn(referencedColumnName: 'id', nullable: true, onDelete: 'SET NULL')]
- private ?File $image = null;
- #[ORM\ManyToMany(targetEntity: TypeOfPractice::class, mappedBy: 'organizations')]
- private Collection $typeOfPractices;
- #[ORM\Column(nullable: true)]
- private ?string $otherPractice = null;
- #[ORM\ManyToMany(targetEntity: ContactPoint::class, mappedBy: 'organization', cascade: ['persist'], orphanRemoval: true)]
- private Collection $contactPoints;
- #[ORM\ManyToMany(targetEntity: BankAccount::class, inversedBy: 'organization')]
- #[ORM\JoinColumn(name: 'organization_id', referencedColumnName: 'id', unique: true)]
- #[ORM\InverseJoinColumn(name: 'bankAccount_id', referencedColumnName: 'id')]
- private Collection $bankAccounts;
- #[ORM\OneToMany(mappedBy: 'organization', targetEntity: OrganizationAddressPostal::class, cascade: ['persist'], orphanRemoval: true)]
- private Collection $organizationAddressPostals;
- #[ORM\OneToMany(mappedBy: 'organization', targetEntity: OrganizationLicence::class, orphanRemoval: true)]
- private Collection $organizationLicences;
- #[ORM\OneToMany(mappedBy: 'organization', targetEntity: OrganizationArticle::class, orphanRemoval: true)]
- private Collection $organizationArticles;
- #[ORM\OneToMany(mappedBy: 'organization', targetEntity: Cycle::class, cascade: ['persist'], orphanRemoval: true)]
- private Collection $cycles;
- #[ORM\OneToMany(mappedBy: 'organization', targetEntity: EducationTiming::class, orphanRemoval: true)]
- private Collection $educationTimings;
- #[ORM\OneToMany(mappedBy: 'organization', targetEntity: Subdomain::class, cascade: ['persist'])]
- private Collection $subdomains;
- #[ORM\ManyToOne(inversedBy: 'organizationContacts')]
- #[ORM\JoinColumn(referencedColumnName: 'id', nullable: true, onDelete: 'SET NULL')]
- private ?Access $contactPerson;
- #[ORM\OneToMany(mappedBy: 'organization', targetEntity: OrganizationHoliday::class, cascade: ['persist'], orphanRemoval: true)]
- private Collection $holidays;
- #[ORM\OneToMany(mappedBy: 'organization', targetEntity: Course::class, orphanRemoval: true)]
- private Collection $courses;
- #[ORM\OneToMany(mappedBy: 'organization', targetEntity: EducationalProject::class, orphanRemoval: true)]
- private Collection $educationalProjects;
- #[ORM\OneToMany(mappedBy: 'organization', targetEntity: Event::class, orphanRemoval: true)]
- private Collection $events;
- #[ORM\OneToMany(mappedBy: 'organization', targetEntity: Examen::class, orphanRemoval: true)]
- private Collection $examens;
- #[ORM\OneToMany(mappedBy: 'organization', targetEntity: CriteriaNotation::class, cascade: ['persist'], orphanRemoval: true)]
- private Collection $critereNotations;
- #[ORM\OneToMany(mappedBy: 'organization', targetEntity: EducationCategory::class, orphanRemoval: true)]
- private Collection $educationCategories;
- #[ORM\OneToMany(mappedBy: 'organization', targetEntity: PeriodNotation::class, orphanRemoval: true)]
- private Collection $periodNotations;
- #[ORM\OneToMany(mappedBy: 'organization', targetEntity: File::class, orphanRemoval: true)]
- private Collection $files;
- #[ORM\OneToMany(mappedBy: 'recipientOrganization', targetEntity: Notification::class, orphanRemoval: true)]
- private Collection $notifications;
- #[ORM\OneToMany(mappedBy: 'author', targetEntity: Email::class)]
- private Collection $emails;
- #[ORM\OneToMany(mappedBy: 'author', targetEntity: Mail::class)]
- private Collection $mails;
- #[ORM\OneToMany(mappedBy: 'author', targetEntity: Sms::class)]
- private Collection $sms;
- #[ORM\OneToMany(mappedBy: 'organization', targetEntity: Activity::class, cascade: ['persist'], orphanRemoval: true)]
- private Collection $activities;
- #[ORM\OneToMany(mappedBy: 'organization', targetEntity: Jury::class, orphanRemoval: true)]
- private Collection $juries;
- #[ORM\OneToMany(mappedBy: 'organization', targetEntity: Commission::class, orphanRemoval: true)]
- private Collection $commissions;
- #[ORM\OneToMany(mappedBy: 'organization', targetEntity: Place::class, orphanRemoval: true)]
- private Collection $places;
- #[ORM\OneToMany(mappedBy: 'organization', targetEntity: Attendance::class, orphanRemoval: true)]
- private Collection $attendances;
- #[ORM\OneToMany(mappedBy: 'organization', targetEntity: Equipment::class, orphanRemoval: true)]
- private Collection $equipments;
- #[ORM\OneToMany(mappedBy: 'organization', targetEntity: Intangible::class, orphanRemoval: true)]
- private Collection $intangibles;
- #[ORM\OneToMany(mappedBy: 'organization', targetEntity: Donor::class, orphanRemoval: true)]
- private Collection $donors;
- #[ORM\OneToMany(mappedBy: 'organization', targetEntity: Reward::class, orphanRemoval: true)]
- private Collection $rewards;
- // #[ORM\OneToOne()]
- // private OnlineRegistrationSettings $onlineRegistrationSettings;
- #[ORM\ManyToMany(targetEntity: Tagg::class, inversedBy: 'organizations', cascade: ['persist'])]
- #[ORM\JoinTable(name: 'tag_organization')]
- #[ORM\JoinColumn(name: 'organization_id', referencedColumnName: 'id')]
- #[ORM\InverseJoinColumn(name: 'tag_id', referencedColumnName: 'id')]
- private Collection $tags;
- #[Pure]
- public function __construct()
- {
- $this->accesses = new ArrayCollection();
- $this->networkOrganizations = new ArrayCollection();
- $this->networkOrganizationChildren = new ArrayCollection();
- $this->typeOfPractices = new ArrayCollection();
- $this->contactPoints = new ArrayCollection();
- $this->bankAccounts = new ArrayCollection();
- $this->organizationAddressPostals = new ArrayCollection();
- $this->organizationLicences = new ArrayCollection();
- $this->organizationArticles = new ArrayCollection();
- $this->cycles = new ArrayCollection();
- $this->educationTimings = new ArrayCollection();
- $this->educationNotationConfigs = new ArrayCollection();
- $this->subdomains = new ArrayCollection();
- $this->holidays = new ArrayCollection();
- $this->courses = new ArrayCollection();
- $this->educationalProjects = new ArrayCollection();
- $this->events = new ArrayCollection();
- $this->examens = new ArrayCollection();
- $this->critereNotations = new ArrayCollection();
- $this->educationCategories = new ArrayCollection();
- $this->periodNotations = new ArrayCollection();
- $this->files = new ArrayCollection();
- $this->notifications = new ArrayCollection();
- $this->emails = new ArrayCollection();
- $this->mails = new ArrayCollection();
- $this->sms = new ArrayCollection();
- $this->activities = new ArrayCollection();
- $this->juries = new ArrayCollection();
- $this->commissions = new ArrayCollection();
- $this->places = new ArrayCollection();
- $this->attendances = new ArrayCollection();
- $this->equipments = new ArrayCollection();
- $this->intangibles = new ArrayCollection();
- $this->donors = new ArrayCollection();
- $this->tags = new ArrayCollection();
- $this->rewards = new ArrayCollection();
- }
- public function getId(): ?int
- {
- return $this->id;
- }
- public function getName(): string
- {
- return $this->name;
- }
- public function setName(string $name): self
- {
- $this->name = $name;
- return $this;
- }
- public function getIdentifier(): string
- {
- return $this->identifier;
- }
- public function setIdentifier(string $identifier): self
- {
- $this->identifier = $identifier;
- return $this;
- }
- public function getLegalStatus(): ?LegalEnum
- {
- return $this->legalStatus;
- }
- public function setLegalStatus(?LegalEnum $legalStatus): self
- {
- $this->legalStatus = $legalStatus;
- return $this;
- }
- public function getPrincipalType(): ?PrincipalTypeEnum
- {
- return $this->principalType;
- }
- public function setPrincipalType(?PrincipalTypeEnum $principalType): self
- {
- $this->principalType = $principalType;
- return $this;
- }
- public function getSettings(): Settings
- {
- return $this->settings;
- }
- public function setSettings(Settings $settings): self
- {
- // set the owning side of the relation if necessary
- if ($settings->getOrganization() !== $this) {
- $settings->setOrganization($this);
- }
- $this->settings = $settings;
- return $this;
- }
- public function getAccesses(): Collection
- {
- return $this->accesses;
- }
- public function getNetworkOrganizations(): Collection
- {
- return $this->networkOrganizations;
- }
- public function addNetworkOrganization(NetworkOrganization $networkOrganization): self
- {
- if (!$this->networkOrganizations->contains($networkOrganization)) {
- $this->networkOrganizations[] = $networkOrganization;
- $networkOrganization->setOrganization($this);
- }
- return $this;
- }
- public function removeNetworkOrganization(NetworkOrganization $networkOrganization): self
- {
- if ($this->networkOrganizations->removeElement($networkOrganization)) {
- // set the owning side to null (unless already changed)
- if ($networkOrganization->getOrganization() === $this) {
- $networkOrganization->setOrganization(null);
- }
- }
- return $this;
- }
- public function getNetworkOrganizationChildren(): Collection
- {
- return $this->networkOrganizationChildren;
- }
- public function addNetworkOrganizationChild(NetworkOrganization $networkOrganizationChild): self
- {
- if (!$this->networkOrganizationChildren->contains($networkOrganizationChild)) {
- $this->networkOrganizationChildren[] = $networkOrganizationChild;
- $networkOrganizationChild->setParent($this);
- }
- return $this;
- }
- public function removeNetworkOrganizationChild(NetworkOrganization $networkOrganizationChild): self
- {
- if ($this->networkOrganizationChildren->removeElement($networkOrganizationChild)) {
- // set the owning side to null (unless already changed)
- if ($networkOrganizationChild->getParent() === $this) {
- $networkOrganizationChild->setParent(null);
- }
- }
- return $this;
- }
- public function getParameters(): Parameters
- {
- return $this->parameters;
- }
- public function setParameters(Parameters $parameters): self
- {
- $this->parameters = $parameters;
- return $this;
- }
- public function getLogo(): ?File
- {
- return $this->logo;
- }
- public function setLogo(?File $logo): void
- {
- $this->logo = $logo;
- }
- public function getBillingSetting(): BillingSetting
- {
- return $this->billingSetting;
- }
- public function setBillingSetting(BillingSetting $billingSetting): self
- {
- $this->billingSetting = $billingSetting;
- return $this;
- }
- public function getDescription(): ?string
- {
- return $this->description;
- }
- public function setDescription(?string $description): self
- {
- $this->description = $description;
- return $this;
- }
- public function getCreationDate(): ?\DateTimeInterface
- {
- return $this->creationDate;
- }
- public function setCreationDate(?\DateTimeInterface $creationDate): self
- {
- $this->creationDate = $creationDate;
- return $this;
- }
- public function getDeclarationDate(): ?\DateTimeInterface
- {
- return $this->declarationDate;
- }
- public function setDeclarationDate(?\DateTimeInterface $declarationDate): self
- {
- $this->declarationDate = $declarationDate;
- return $this;
- }
- public function getSiretNumber(): ?string
- {
- return $this->siretNumber;
- }
- public function setSiretNumber(?string $siretNumber): self
- {
- $this->siretNumber = $siretNumber;
- return $this;
- }
- public function getWaldecNumber(): ?string
- {
- return $this->waldecNumber;
- }
- public function setWaldecNumber(?string $waldecNumber): self
- {
- $this->waldecNumber = $waldecNumber;
- return $this;
- }
- public function getVolumeAndFolioNumber(): ?string
- {
- return $this->volumeAndFolioNumber;
- }
- public function setVolumeAndFolioNumber(?string $volumeAndFolioNumber): self
- {
- $this->volumeAndFolioNumber = $volumeAndFolioNumber;
- return $this;
- }
- public function getApeNumber(): ?string
- {
- return $this->apeNumber;
- }
- public function setApeNumber(?string $apeNumber): self
- {
- $this->apeNumber = $apeNumber;
- return $this;
- }
- public function getTvaNumber(): ?string
- {
- return $this->tvaNumber;
- }
- public function setTvaNumber(?string $tvaNumber): self
- {
- $this->tvaNumber = $tvaNumber;
- return $this;
- }
- public function getOtherType(): ?string
- {
- return $this->otherType;
- }
- public function setOtherType(?string $otherType): self
- {
- $this->otherType = $otherType;
- return $this;
- }
- public function getAcronym(): ?string
- {
- return $this->acronym;
- }
- public function setAcronym(?string $acronym): self
- {
- $this->acronym = $acronym;
- return $this;
- }
- public function getFacebook(): ?string
- {
- return $this->facebook;
- }
- public function setFacebook(?string $facebook): self
- {
- $this->facebook = $facebook;
- return $this;
- }
- public function getTwitter(): ?string
- {
- return $this->twitter;
- }
- public function setTwitter(?string $twitter): self
- {
- $this->twitter = $twitter;
- return $this;
- }
- public function getYoutube(): ?string
- {
- return $this->youtube;
- }
- public function setYoutube(?string $youtube): self
- {
- $this->youtube = $youtube;
- return $this;
- }
- public function getInstagram(): ?string
- {
- return $this->instagram;
- }
- public function setInstagram(?string $instagram): self
- {
- $this->instagram = $instagram;
- return $this;
- }
- public function getCollectiveAgreement(): ?string
- {
- return $this->collectiveAgreement;
- }
- public function setCollectiveAgreement(?string $collectiveAgreement): self
- {
- $this->collectiveAgreement = $collectiveAgreement;
- return $this;
- }
- public function getOpca(): ?OpcaEnum
- {
- return $this->opca;
- }
- public function setOpca(?OpcaEnum $opca): self
- {
- $this->opca = $opca;
- return $this;
- }
- public function getIcomNumber(): ?string
- {
- return $this->icomNumber;
- }
- public function setIcomNumber(?string $icomNumber): self
- {
- $this->icomNumber = $icomNumber;
- return $this;
- }
- public function getUrssafNumber(): ?string
- {
- return $this->urssafNumber;
- }
- public function setUrssafNumber(?string $urssafNumber): self
- {
- $this->urssafNumber = $urssafNumber;
- return $this;
- }
- public function getYoungApproval(): ?string
- {
- return $this->youngApproval;
- }
- public function setYoungApproval(?string $youngApproval): self
- {
- $this->youngApproval = $youngApproval;
- return $this;
- }
- public function getTrainingApproval(): ?string
- {
- return $this->trainingApproval;
- }
- public function setTrainingApproval(?string $trainingApproval): self
- {
- $this->trainingApproval = $trainingApproval;
- return $this;
- }
- public function getOtherApproval(): ?string
- {
- return $this->otherApproval;
- }
- public function setOtherApproval(?string $otherApproval): self
- {
- $this->otherApproval = $otherApproval;
- return $this;
- }
- public function getPrefectureName(): ?string
- {
- return $this->prefectureName;
- }
- public function setPrefectureName(?string $prefectureName): self
- {
- $this->prefectureName = $prefectureName;
- return $this;
- }
- public function getPrefectureNumber(): ?string
- {
- return $this->prefectureNumber;
- }
- public function setPrefectureNumber(?string $prefectureNumber): self
- {
- $this->prefectureNumber = $prefectureNumber;
- return $this;
- }
- public function getCategory(): ?CategoryEnum
- {
- return $this->category;
- }
- public function setCategory(?CategoryEnum $category): self
- {
- $this->category = $category;
- return $this;
- }
- public function getSchoolCategory(): ?SchoolCategoryEnum
- {
- return $this->schoolCategory;
- }
- public function setSchoolCategory(?SchoolCategoryEnum $schoolCategory): self
- {
- $this->schoolCategory = $schoolCategory;
- return $this;
- }
- public function getTypeEstablishment(): ?TypeEstablishmentEnum
- {
- return $this->typeEstablishment;
- }
- public function setTypeEstablishment(?TypeEstablishmentEnum $typeEstablishment): self
- {
- $this->typeEstablishment = $typeEstablishment;
- return $this;
- }
- public function getTypeEstablishmentDetail(): ?TypeEstablishmentDetailEnum
- {
- return $this->typeEstablishmentDetail;
- }
- public function setTypeEstablishmentDetail(?TypeEstablishmentDetailEnum $typeEstablishmentDetail): self
- {
- $this->typeEstablishmentDetail = $typeEstablishmentDetail;
- return $this;
- }
- public function getBudget(): ?float
- {
- return $this->budget;
- }
- public function setBudget(?float $budget): self
- {
- $this->budget = $budget;
- return $this;
- }
- public function getIsPedagogicIsPrincipalActivity(): ?bool
- {
- return $this->isPedagogicIsPrincipalActivity;
- }
- public function setIsPedagogicIsPrincipalActivity(?bool $isPedagogicIsPrincipalActivity): self
- {
- $this->isPedagogicIsPrincipalActivity = $isPedagogicIsPrincipalActivity;
- return $this;
- }
- public function getPedagogicBudget(): ?float
- {
- return $this->pedagogicBudget;
- }
- public function setPedagogicBudget(?float $pedagogicBudget): self
- {
- $this->pedagogicBudget = $pedagogicBudget;
- return $this;
- }
- public function getIsPerformanceContractor(): ?bool
- {
- return $this->isPerformanceContractor;
- }
- public function setIsPerformanceContractor(?bool $isPerformanceContractor): self
- {
- $this->isPerformanceContractor = $isPerformanceContractor;
- return $this;
- }
- public function getFfecApproval(): ?string
- {
- return $this->ffecApproval;
- }
- public function setFfecApproval(?string $ffecApproval): self
- {
- $this->ffecApproval = $ffecApproval;
- return $this;
- }
- public function getPortailVisibility(): bool
- {
- return $this->portailVisibility;
- }
- public function setPortailVisibility(bool $portailVisibility): self
- {
- $this->portailVisibility = $portailVisibility;
- return $this;
- }
- public function getCmsId(): ?int
- {
- return $this->cmsId;
- }
- public function setCmsId(?int $cmsId): self
- {
- $this->cmsId = $cmsId;
- return $this;
- }
- public function setImage(?File $image): self
- {
- $this->image = $image;
- return $this;
- }
- public function getImage(): ?File
- {
- return $this->image;
- }
- public function getTypeOfPractices(): Collection
- {
- return $this->typeOfPractices;
- }
- public function addTypeOfPractice(TypeOfPractice $typeOfPractice): self
- {
- if (!$this->typeOfPractices->contains($typeOfPractice)) {
- $this->typeOfPractices[] = $typeOfPractice;
- $typeOfPractice->addOrganization($this);
- }
- return $this;
- }
- public function removeTypeOfPractice(TypeOfPractice $typeOfPractice): self
- {
- if ($this->typeOfPractices->removeElement($typeOfPractice)) {
- $typeOfPractice->removeOrganization($this);
- }
- return $this;
- }
- public function getOtherPractice(): ?string
- {
- return $this->otherPractice;
- }
- public function setOtherPractice(?string $otherPractice): self
- {
- $this->otherPractice = $otherPractice;
- return $this;
- }
- public function getContactPoints(): Collection
- {
- return $this->contactPoints;
- }
- public function addContactPoint(ContactPoint $contactPoint): self
- {
- if (!$this->contactPoints->contains($contactPoint)) {
- $this->contactPoints[] = $contactPoint;
- $contactPoint->addOrganization($this);
- }
- return $this;
- }
- public function removeContactPoint(ContactPoint $contactPoint): self
- {
- if ($this->contactPoints->removeElement($contactPoint)) {
- $contactPoint->removeOrganization($this);
- }
- return $this;
- }
- public function getBankAccounts(): Collection
- {
- return $this->bankAccounts;
- }
- public function addBankAccount(BankAccount $bankAccount): self
- {
- if (!$this->bankAccounts->contains($bankAccount)) {
- $this->bankAccounts[] = $bankAccount;
- $bankAccount->addOrganization($this);
- }
- return $this;
- }
- public function removeBankAccount(BankAccount $bankAccount): self
- {
- if ($this->bankAccounts->removeElement($bankAccount)) {
- $bankAccount->removeOrganization($this);
- }
- return $this;
- }
- public function getOrganizationAddressPostals(): Collection
- {
- return $this->organizationAddressPostals;
- }
- public function addOrganizationAddressPostal(OrganizationAddressPostal $organizationAddressPostal): self
- {
- if (!$this->organizationAddressPostals->contains($organizationAddressPostal)) {
- $this->organizationAddressPostals[] = $organizationAddressPostal;
- $organizationAddressPostal->setOrganization($this);
- }
- return $this;
- }
- public function removeOrganizationAddressPostal(OrganizationAddressPostal $organizationAddressPostal): self
- {
- if ($this->organizationAddressPostals->removeElement($organizationAddressPostal)) {
- // set the owning side to null (unless already changed)
- if ($organizationAddressPostal->getOrganization() === $this) {
- $organizationAddressPostal->setOrganization(null);
- }
- }
- return $this;
- }
- public function getOrganizationLicences(): Collection
- {
- return $this->organizationLicences;
- }
- public function addOrganizationLicence(OrganizationLicence $organizationLicence): self
- {
- if (!$this->organizationLicences->contains($organizationLicence)) {
- $this->organizationLicences[] = $organizationLicence;
- $organizationLicence->setOrganization($this);
- }
- return $this;
- }
- public function removeOrganizationLicence(OrganizationLicence $organizationLicence): self
- {
- if ($this->organizationLicences->removeElement($organizationLicence)) {
- // set the owning side to null (unless already changed)
- if ($organizationLicence->getOrganization() === $this) {
- $organizationLicence->setOrganization(null);
- }
- }
- return $this;
- }
- public function getOrganizationArticles(): Collection
- {
- return $this->organizationArticles;
- }
- public function addOrganizationArticle(OrganizationArticle $organizationArticle): self
- {
- if (!$this->organizationArticles->contains($organizationArticle)) {
- $this->organizationArticles[] = $organizationArticle;
- $organizationArticle->setOrganization($this);
- }
- return $this;
- }
- public function removeOrganizationArticle(OrganizationArticle $organizationArticle): self
- {
- if ($this->organizationArticles->removeElement($organizationArticle)) {
- // set the owning side to null (unless already changed)
- if ($organizationArticle->getOrganization() === $this) {
- $organizationArticle->setOrganization(null);
- }
- }
- return $this;
- }
- public function addCycle(Cycle $cycle): self
- {
- if (!$this->cycles->contains($cycle)) {
- $this->cycles[] = $cycle;
- $cycle->setOrganization($this);
- }
- return $this;
- }
- public function removeCycle(Cycle $cycle): self
- {
- if ($this->cycles->removeElement($cycle)) {
- // set the owning side to null (unless already changed)
- if ($cycle->getOrganization() === $this) {
- $cycle->setOrganization(null);
- }
- }
- return $this;
- }
- public function getCycles(): Collection
- {
- return $this->cycles;
- }
- public function addEducationNotationConfig(EducationNotationConfig $educationNotationConfig): self
- {
- if (!$this->educationNotationConfigs->contains($educationNotationConfig)) {
- $this->educationNotationConfigs[] = $educationNotationConfig;
- $educationNotationConfig->setOrganization($this);
- }
- return $this;
- }
- public function removeEducationNotationConfig(EducationNotationConfig $educationNotationConfig): self
- {
- if ($this->educationNotationConfigs->removeElement($educationNotationConfig)) {
- // set the owning side to null (unless already changed)
- if ($educationNotationConfig->getOrganization() === $this) {
- $educationNotationConfig->setOrganization(null);
- }
- }
- return $this;
- }
- public function getEducationNotationConfigs(): Collection
- {
- return $this->educationNotationConfigs;
- }
- public function addEducationTiming(EducationTiming $educationTiming): self
- {
- if (!$this->educationTimings->contains($educationTiming)) {
- $this->educationTimings[] = $educationTiming;
- $educationTiming->setOrganization($this);
- }
- return $this;
- }
- public function removeEducationTiming(EducationTiming $educationTiming): self
- {
- if ($this->educationTimings->removeElement($educationTiming)) {
- // set the owning side to null (unless already changed)
- if ($educationTiming->getOrganization() === $this) {
- $educationTiming->setOrganization(null);
- }
- }
- return $this;
- }
- public function getEducationTimings(): Collection
- {
- return $this->educationTimings;
- }
- public function getSubdomains(): Collection
- {
- return $this->subdomains;
- }
- public function addSubdomain(Subdomain $subdomain): self
- {
- if (!$this->subdomains->contains($subdomain)) {
- $this->subdomains[] = $subdomain;
- $subdomain->setOrganization($this);
- }
- return $this;
- }
- public function addAccess(Access $access): self
- {
- if (!$this->accesses->contains($access)) {
- $this->accesses[] = $access;
- $access->setOrganization($this);
- }
- return $this;
- }
- public function removeAccess(Access $access): self
- {
- if ($this->accesses->removeElement($access)) {
- // set the owning side to null (unless already changed)
- if ($access->getOrganization() === $this) {
- $access->setOrganization(null);
- }
- }
- return $this;
- }
- public function getContactPerson(): ?Access
- {
- return $this->contactPerson;
- }
- public function setContactPerson(?Access $contactPerson): self
- {
- $this->contactPerson = $contactPerson;
- return $this;
- }
- /**
- * @return Collection<int, OrganizationHoliday>
- */
- public function getHolidays(): Collection
- {
- return $this->holidays;
- }
- public function addHoliday(OrganizationHoliday $holiday): self
- {
- if (!$this->holidays->contains($holiday)) {
- $this->holidays[] = $holiday;
- $holiday->setOrganization($this);
- }
- return $this;
- }
- public function removeHoliday(OrganizationHoliday $holiday): self
- {
- if ($this->holidays->removeElement($holiday)) {
- // set the owning side to null (unless already changed)
- if ($holiday->getOrganization() === $this) {
- $holiday->setOrganization(null);
- }
- }
- return $this;
- }
- /**
- * @return Collection<int, Course>
- */
- public function getCourses(): Collection
- {
- return $this->courses;
- }
- public function addCourse(Course $course): self
- {
- if (!$this->courses->contains($course)) {
- $this->courses[] = $course;
- $course->setOrganization($this);
- }
- return $this;
- }
- public function removeCourse(Course $course): self
- {
- if ($this->courses->removeElement($course)) {
- // set the owning side to null (unless already changed)
- if ($course->getOrganization() === $this) {
- $course->setOrganization(null);
- }
- }
- return $this;
- }
- /**
- * @return Collection<int, EducationalProject>
- */
- public function getEducationalProjects(): Collection
- {
- return $this->educationalProjects;
- }
- public function addEducationalProject(EducationalProject $educationalProject): self
- {
- if (!$this->educationalProjects->contains($educationalProject)) {
- $this->educationalProjects[] = $educationalProject;
- $educationalProject->setOrganization($this);
- }
- return $this;
- }
- public function removeEducationalProject(EducationalProject $educationalProject): self
- {
- if ($this->educationalProjects->removeElement($educationalProject)) {
- // set the owning side to null (unless already changed)
- if ($educationalProject->getOrganization() === $this) {
- $educationalProject->setOrganization(null);
- }
- }
- return $this;
- }
- /**
- * @return Collection<int, Event>
- */
- public function getEvents(): Collection
- {
- return $this->events;
- }
- public function addEvent(Event $event): self
- {
- if (!$this->events->contains($event)) {
- $this->events[] = $event;
- $event->setOrganization($this);
- }
- return $this;
- }
- public function removeEvent(Event $event): self
- {
- if ($this->events->removeElement($event)) {
- // set the owning side to null (unless already changed)
- if ($event->getOrganization() === $this) {
- $event->setOrganization(null);
- }
- }
- return $this;
- }
- /**
- * @return Collection<int, Examen>
- */
- public function getExamens(): Collection
- {
- return $this->examens;
- }
- public function addExamen(Examen $examen): self
- {
- if (!$this->examens->contains($examen)) {
- $this->examens[] = $examen;
- $examen->setOrganization($this);
- }
- return $this;
- }
- public function removeExamen(Examen $examen): self
- {
- if ($this->examens->removeElement($examen)) {
- // set the owning side to null (unless already changed)
- if ($examen->getOrganization() === $this) {
- $examen->setOrganization(null);
- }
- }
- return $this;
- }
- /**
- * @return Collection<int, CriteriaNotation>
- */
- public function getCritereNotations(): Collection
- {
- return $this->critereNotations;
- }
- public function addCritereNotation(CriteriaNotation $critereNotation): self
- {
- if (!$this->critereNotations->contains($critereNotation)) {
- $this->critereNotations[] = $critereNotation;
- $critereNotation->setOrganization($this);
- }
- return $this;
- }
- public function removeCritereNotation(CriteriaNotation $critereNotation): self
- {
- if ($this->critereNotations->removeElement($critereNotation)) {
- // set the owning side to null (unless already changed)
- if ($critereNotation->getOrganization() === $this) {
- $critereNotation->setOrganization(null);
- }
- }
- return $this;
- }
- /**
- * @return Collection<int, EducationCategory>
- */
- public function getEducationCategories(): Collection
- {
- return $this->educationCategories;
- }
- public function addEducationCategory(EducationCategory $educationCategory): self
- {
- if (!$this->educationCategories->contains($educationCategory)) {
- $this->educationCategories[] = $educationCategory;
- $educationCategory->setOrganization($this);
- }
- return $this;
- }
- public function removeEducationCategory(EducationCategory $educationCategory): self
- {
- if ($this->educationCategories->removeElement($educationCategory)) {
- // set the owning side to null (unless already changed)
- if ($educationCategory->getOrganization() === $this) {
- $educationCategory->setOrganization(null);
- }
- }
- return $this;
- }
- /**
- * @return Collection<int, PeriodNotation>
- */
- public function getPeriodNotations(): Collection
- {
- return $this->periodNotations;
- }
- public function addPeriodNotation(PeriodNotation $periodNotation): self
- {
- if (!$this->periodNotations->contains($periodNotation)) {
- $this->periodNotations[] = $periodNotation;
- $periodNotation->setOrganization($this);
- }
- return $this;
- }
- public function removePeriodNotation(PeriodNotation $periodNotation): self
- {
- if ($this->periodNotations->removeElement($periodNotation)) {
- // set the owning side to null (unless already changed)
- if ($periodNotation->getOrganization() === $this) {
- $periodNotation->setOrganization(null);
- }
- }
- return $this;
- }
- /**
- * @return Collection<int, File>
- */
- public function getFiles(): Collection
- {
- return $this->files;
- }
- public function addFile(File $file): self
- {
- if (!$this->files->contains($file)) {
- $this->files[] = $file;
- $file->setOrganization($this);
- }
- return $this;
- }
- public function removeFile(File $file): self
- {
- if ($this->files->removeElement($file)) {
- // set the owning side to null (unless already changed)
- if ($file->getOrganization() === $this) {
- $file->setOrganization(null);
- }
- }
- return $this;
- }
- /**
- * @return Collection<int, Notification>
- */
- public function getNotifications(): Collection
- {
- return $this->notifications;
- }
- public function addNotification(Notification $notification): self
- {
- if (!$this->notifications->contains($notification)) {
- $this->notifications[] = $notification;
- $notification->setRecipientOrganization($this);
- }
- return $this;
- }
- public function removeNotification(Notification $notification): self
- {
- if ($this->notifications->removeElement($notification)) {
- // set the owning side to null (unless already changed)
- if ($notification->getRecipientOrganization() === $this) {
- $notification->setRecipientOrganization(null);
- }
- }
- return $this;
- }
- /**
- * @return Collection<int, Email>
- */
- public function getEmails(): Collection
- {
- return $this->emails;
- }
- /**
- * @return Collection<int, Mail>
- */
- public function getMails(): Collection
- {
- return $this->mails;
- }
- /**
- * @return Collection<int, Sms>
- */
- public function getSms(): Collection
- {
- return $this->sms;
- }
- /**
- * @return Collection<int, Activity>
- */
- public function getActivities(): Collection
- {
- return $this->activities;
- }
- public function addActivity(Activity $activity): self
- {
- if (!$this->activities->contains($activity)) {
- $this->activities[] = $activity;
- $activity->setOrganization($this);
- }
- return $this;
- }
- public function removeActivity(Activity $activity): self
- {
- if ($this->activities->removeElement($activity)) {
- // set the owning side to null (unless already changed)
- if ($activity->getOrganization() === $this) {
- $activity->setOrganization(null);
- }
- }
- return $this;
- }
- /**
- * @return Collection<int, Jury>
- */
- public function getJuries(): Collection
- {
- return $this->juries;
- }
- public function addJury(Jury $jury): self
- {
- if (!$this->juries->contains($jury)) {
- $this->juries[] = $jury;
- $jury->setOrganization($this);
- }
- return $this;
- }
- public function removeJury(Jury $jury): self
- {
- if ($this->juries->removeElement($jury)) {
- // set the owning side to null (unless already changed)
- if ($jury->getOrganization() === $this) {
- $jury->setOrganization(null);
- }
- }
- return $this;
- }
- /**
- * @return Collection<int, Commission>
- */
- public function getCommissions(): Collection
- {
- return $this->commissions;
- }
- public function addCommission(Commission $commission): self
- {
- if (!$this->commissions->contains($commission)) {
- $this->commissions[] = $commission;
- $commission->setOrganization($this);
- }
- return $this;
- }
- public function removeCommission(Commission $commission): self
- {
- if ($this->commissions->removeElement($commission)) {
- // set the owning side to null (unless already changed)
- if ($commission->getOrganization() === $this) {
- $commission->setOrganization(null);
- }
- }
- return $this;
- }
- /**
- * @return Collection<int, Place>
- */
- public function getPlaces(): Collection
- {
- return $this->places;
- }
- public function addPlace(Place $place): self
- {
- if (!$this->places->contains($place)) {
- $this->places[] = $place;
- $place->setOrganization($this);
- }
- return $this;
- }
- public function removePlace(Place $place): self
- {
- if ($this->places->removeElement($place)) {
- // set the owning side to null (unless already changed)
- if ($place->getOrganization() === $this) {
- $place->setOrganization(null);
- }
- }
- return $this;
- }
- /**
- * @return Collection<int, Attendance>
- */
- public function getAttendances(): Collection
- {
- return $this->attendances;
- }
- public function addAttendance(Attendance $attendance): self
- {
- if (!$this->attendances->contains($attendance)) {
- $this->attendances[] = $attendance;
- $attendance->setOrganization($this);
- }
- return $this;
- }
- public function removeAttendance(Attendance $attendance): self
- {
- if ($this->attendances->removeElement($attendance)) {
- // set the owning side to null (unless already changed)
- if ($attendance->getOrganization() === $this) {
- $attendance->setOrganization(null);
- }
- }
- return $this;
- }
- /**
- * @return Collection<int, Equipment>
- */
- public function getEquipments(): Collection
- {
- return $this->equipments;
- }
- public function addEquipment(Equipment $equipment): self
- {
- if (!$this->equipments->contains($equipment)) {
- $this->equipments[] = $equipment;
- $equipment->setOrganization($this);
- }
- return $this;
- }
- public function removeEquipment(Equipment $equipment): self
- {
- if ($this->equipments->removeElement($equipment)) {
- // set the owning side to null (unless already changed)
- if ($equipment->getOrganization() === $this) {
- $equipment->setOrganization(null);
- }
- }
- return $this;
- }
- /**
- * @return Collection<int, Intangible>
- */
- public function getIntangibles(): Collection
- {
- return $this->intangibles;
- }
- public function addIntangible(Intangible $intangible): self
- {
- if (!$this->intangibles->contains($intangible)) {
- $this->intangibles[] = $intangible;
- $intangible->setOrganization($this);
- }
- return $this;
- }
- public function removeIntangible(Intangible $intangible): self
- {
- if ($this->intangibles->removeElement($intangible)) {
- // set the owning side to null (unless already changed)
- if ($intangible->getOrganization() === $this) {
- $intangible->setOrganization(null);
- }
- }
- return $this;
- }
- /**
- * @return Collection<int, Donor>
- */
- public function getDonors(): Collection
- {
- return $this->donors;
- }
- public function addDonor(Donor $donor): self
- {
- if (!$this->donors->contains($donor)) {
- $this->donors[] = $donor;
- $donor->setOrganization($this);
- }
- return $this;
- }
- public function removeDonor(Donor $donor): self
- {
- if ($this->donors->removeElement($donor)) {
- // set the owning side to null (unless already changed)
- if ($donor->getOrganization() === $this) {
- $donor->setOrganization(null);
- }
- }
- return $this;
- }
- // public function getOnlineRegistrationSettings(): \App\Entity\Organization\OnlineRegistrationSettings
- // {
- // return $this->onlineRegistrationSettings;
- // }
- //
- // public function setOnlineRegistrationSettings(\App\Entity\Organization\OnlineRegistrationSettings $onlineRegistrationSettings): void
- // {
- // $this->onlineRegistrationSettings = $onlineRegistrationSettings;
- // }
- /**
- * @return Collection<int, Tagg>
- */
- public function getTags(): Collection
- {
- return $this->tags;
- }
- public function addTag(Tagg $tag): self
- {
- if (!$this->tags->contains($tag)) {
- $this->tags[] = $tag;
- }
- return $this;
- }
- public function removeTag(Tagg $tag): self
- {
- $this->tags->removeElement($tag);
- return $this;
- }
- public function getRewards(): Collection
- {
- return $this->rewards;
- }
- public function addReward(Reward $rewards): self
- {
- if (!$this->rewards->contains($rewards)) {
- $this->rewards[] = $rewards;
- $rewards->setOrganization($this);
- }
- return $this;
- }
- public function removeReward(Reward $rewards): self
- {
- if ($this->rewards->removeElement($rewards)) {
- // set the owning side to null (unless already changed)
- if ($rewards->getOrganization() === $this) {
- $rewards->setOrganization(null);
- }
- }
- return $this;
- }
- }
|