| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894 |
- <?php
- declare(strict_types=1);
- namespace App\Entity\Organization;
- use ApiPlatform\Core\Annotation\ApiResource;
- use ApiPlatform\Core\Annotation\ApiSubresource;
- 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\Repository\Organization\OrganizationRepository;
- use AppBundle\Services\Messenger\Message;
- use Doctrine\Common\Collections\ArrayCollection;
- use Doctrine\Common\Collections\Collection;
- use Doctrine\ORM\Mapping as ORM;
- use JetBrains\PhpStorm\Pure;
- use Symfony\Component\Validator\Constraints as Assert;
- /**
- * Structure, organisation
- */
- #[ApiResource(
- itemOperations: [
- 'get' => [
- 'security' => '(is_granted("ROLE_ORGANIZATION_VIEW") or is_granted("ROLE_ORGANIZATION")) and object.getId() == user.getOrganization().getId()'
- ],
- 'put' => [
- 'security' => 'is_granted("ROLE_ORGANIZATION") and object.getId() == user.getOrganization().getId()'
- ]
- ]
- )]
- #[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: 255, nullable: true)]
- #[Assert\Choice(callback: ['\App\Enum\Organization\LegalEnum', 'toArray'], message: 'invalid-legal-status')]
- private ?string $legalStatus = null;
- #[ORM\Column(length: 255, nullable: true)]
- #[Assert\Choice(callback: ['\App\Enum\Organization\PrincipalTypeEnum', 'toArray'], message: 'invalid-principal-type')]
- private ?string $principalType = null;
- #[ORM\OneToOne(mappedBy: 'organization', cascade: ['persist', 'remove'])]
- private Settings $settings;
- #[ORM\OneToMany(mappedBy: 'organization', targetEntity: Access::class, orphanRemoval: true)]
- private Collection $accesses;
- #[ORM\OneToMany(mappedBy: 'organization', targetEntity: NetworkOrganization::class, orphanRemoval: true)]
- #[ApiSubresource]
- 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)]
- #[ORM\JoinColumn(nullable: false)]
- private Parameters $parameters;
- #[ORM\OneToOne(mappedBy: 'organization', cascade: ['persist', 'remove'], orphanRemoval: true)]
- #[ApiSubresource]
- 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: 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: 255, nullable: true)]
- #[Assert\Choice(callback: ['\App\Enum\Organization\OpcaEnum', 'toArray'], message: 'invalid-opca')]
- private ?string $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: 255, nullable: true)]
- #[Assert\Choice(callback: ['\App\Enum\Organization\CategoryEnum', 'toArray'], message: 'invalid-category')]
- private ?string $category = null;
- #[ORM\Column(length: 255, nullable: true)]
- #[Assert\Choice(callback: ['\App\Enum\Organization\SchoolCategoryEnum', 'toArray'], message: 'invalid-school-category')]
- private ?string $schoolCategory = null;
- #[ORM\Column(length: 255, nullable: true)]
- #[Assert\Choice(callback: ['\App\Enum\Organization\TypeEstablishmentEnum', 'toArray'], message: 'invalid-type-establishment')]
- private ?string $typeEstablishment = null;
- #[ORM\Column(length: 255, nullable: true)]
- #[Assert\Choice(callback: ['\App\Enum\Organization\TypeEstablishmentDetailEnum', 'toArray'], message: 'invalid-type-establishment-detail')]
- private ?string $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;
- #[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')]
- #[ApiSubresource]
- private Collection $typeOfPractices;
- #[ORM\Column(nullable: true)]
- private ?string $otherPractice = null;
- #[ORM\ManyToMany(targetEntity: ContactPoint::class, mappedBy: 'organization')]
- #[ApiSubresource]
- 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')]
- #[ApiSubresource]
- private Collection $bankAccounts;
- #[ORM\OneToMany( mappedBy: 'organization', targetEntity: OrganizationAddressPostal::class, orphanRemoval: true)]
- #[ApiSubresource]
- private Collection $organizationAddressPostals;
- #[ORM\OneToMany(mappedBy: 'organization', targetEntity: OrganizationLicence::class, orphanRemoval: true)]
- private Collection $organizationLicences;
- #[ORM\OneToMany(mappedBy: 'organization', targetEntity: OrganizationArticle::class, orphanRemoval: true)]
- #[ApiSubresource]
- private Collection $organizationArticles;
- #[ORM\OneToMany(mappedBy: 'organization', targetEntity: Cycle::class, orphanRemoval: true)]
- private Collection $cycles;
- #[ORM\OneToMany(mappedBy: 'organization', targetEntity: EducationTiming::class, orphanRemoval: true)]
- private Collection $educationTimings;
- #[ORM\OneToMany( mappedBy: 'organization', targetEntity: Subdomain::class)]
- #[ApiSubresource]
- 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\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();
- }
- 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(): ?string
- {
- return $this->legalStatus;
- }
- public function setLegalStatus(?string $legalStatus): self
- {
- $this->legalStatus = $legalStatus;
- return $this;
- }
- public function getPrincipalType(): ?string
- {
- return $this->principalType;
- }
- public function setPrincipalType(?string $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;
- }
- /**
- * @return File
- */
- public function getLogo(): File
- {
- return $this->logo;
- }
- /**
- * @param File $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 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(): ?string
- {
- return $this->opca;
- }
- public function setOpca(?string $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(): ?string
- {
- return $this->category;
- }
- public function setCategory(?string $category): self
- {
- $this->category = $category;
- return $this;
- }
- public function getSchoolCategory(): ?string
- {
- return $this->schoolCategory;
- }
- public function setSchoolCategory(?string $schoolCategory): self
- {
- $this->schoolCategory = $schoolCategory;
- return $this;
- }
- public function getTypeEstablishment(): ?string
- {
- return $this->typeEstablishment;
- }
- public function setTypeEstablishment(?string $typeEstablishment): self
- {
- $this->typeEstablishment = $typeEstablishment;
- return $this;
- }
- public function getTypeEstablishmentDetail(): ?string
- {
- return $this->typeEstablishmentDetail;
- }
- public function setTypeEstablishmentDetail(?string $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): self
- {
- $subdomain->setOrganization($this);
- $this->subdomains[] = $subdomain;
- return $this;
- }
- public function removeSubdomain($subdomain): self
- {
- $subdomain->setOrganization(null);
- $this->subdomains->removeElement($subdomain);
- 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;
- }
- public function addEmail(Email $email): self
- {
- if (!$this->emails->contains($email)) {
- $this->emails[] = $email;
- $email->setAuthor($this);
- }
- return $this;
- }
- public function removeEmail(Email $email): self
- {
- if ($this->emails->removeElement($email)) {
- // set the owning side to null (unless already changed)
- if ($email->getAuthor() === $this) {
- $email->setAuthor(null);
- }
- }
- return $this;
- }
- /**
- * @return Collection<int, Mail>
- */
- public function getMails(): Collection
- {
- return $this->mails;
- }
- public function addMail(Mail $mail): self
- {
- if (!$this->mails->contains($mail)) {
- $this->mails[] = $mail;
- $mail->setAuthor($this);
- }
- return $this;
- }
- public function removeMail(Mail $mail): self
- {
- if ($this->mails->removeElement($mail)) {
- // set the owning side to null (unless already changed)
- if ($mail->getAuthor() === $this) {
- $mail->setAuthor(null);
- }
- }
- return $this;
- }
- /**
- * @return Collection<int, Sms>
- */
- public function getSms(): Collection
- {
- return $this->sms;
- }
- public function addSms(Sms $sms): self
- {
- if (!$this->sms->contains($sms)) {
- $this->sms[] = $sms;
- $sms->setAuthor($this);
- }
- return $this;
- }
- public function removeSms(Sms $sms): self
- {
- if ($this->sms->removeElement($sms)) {
- // set the owning side to null (unless already changed)
- if ($sms->getAuthor() === $this) {
- $sms->setAuthor(null);
- }
- }
- return $this;
- }
- /**
- * @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;
- }
- /**
- * @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;
- }
- }
|