|
|
@@ -4,23 +4,23 @@ declare(strict_types=1);
|
|
|
namespace App\Entity\Organization;
|
|
|
|
|
|
use ApiPlatform\Core\Annotation\ApiResource;
|
|
|
+use ApiPlatform\Core\Annotation\ApiSubresource;
|
|
|
+use App\Entity\Core\BankAccount;
|
|
|
+use App\Entity\Core\ContactPoint;
|
|
|
use App\Entity\Network\NetworkOrganization;
|
|
|
use App\Repository\Organization\OrganizationRepository;
|
|
|
use Doctrine\Common\Collections\ArrayCollection;
|
|
|
use Doctrine\Common\Collections\Collection;
|
|
|
use Doctrine\ORM\Mapping as ORM;
|
|
|
+use Symfony\Component\Validator\Constraints as Assert;
|
|
|
|
|
|
/**
|
|
|
* Structure, organisation
|
|
|
*
|
|
|
* @ApiResource(
|
|
|
- * collectionOperations={
|
|
|
- * "get"={"security"="is_granted('ROLE_ORGANIZATION')"},
|
|
|
- * "post"={"security"="is_granted('ROLE_ORGANIZATION_CREATE')"}
|
|
|
- * },
|
|
|
* itemOperations={
|
|
|
- * "get"={"security"="is_granted('ROLE_ORGANIZATION_EDIT') and object.getId() == user.organization.getId()"},
|
|
|
- * "put"={"security"="is_granted('ROLE_ORGANIZATION_EDIT')"}
|
|
|
+ * "get"={"security"="(is_granted('ROLE_ORGANIZATION_VIEW') or is_granted('ROLE_ORGANIZATION')) and object.getId() == user.organization.getId() "},
|
|
|
+ * "put"={"security"="is_granted('ROLE_ORGANIZATION') and object.getId() == user.organization.getId() "}
|
|
|
* }
|
|
|
* )
|
|
|
* @ORM\Entity(repositoryClass=OrganizationRepository::class)
|
|
|
@@ -46,11 +46,13 @@ class Organization
|
|
|
|
|
|
/**
|
|
|
* @ORM\Column(type="string", length=255, nullable=true)
|
|
|
+ * @Assert\Choice(callback={"\App\Enum\Organization\LegalEnum", "toArray"})
|
|
|
*/
|
|
|
private $legalStatus;
|
|
|
|
|
|
/**
|
|
|
* @ORM\Column(type="string", length=255, nullable=true)
|
|
|
+ * @Assert\Choice(callback={"\App\Enum\Organization\PrincipalTypeEnum", "toArray"})
|
|
|
*/
|
|
|
private $principalType;
|
|
|
|
|
|
@@ -75,10 +77,207 @@ class Organization
|
|
|
*/
|
|
|
private $parameters;
|
|
|
|
|
|
+ /**
|
|
|
+ * @ORM\Column(type="string", length=255, nullable=true)
|
|
|
+ */
|
|
|
+ private $description;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @ORM\Column(type="date", nullable=true)
|
|
|
+ */
|
|
|
+ private $creationDate;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @ORM\Column(type="date", nullable=true)
|
|
|
+ */
|
|
|
+ private $declarationDate;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @ORM\Column(type="string", length=14, nullable=true)
|
|
|
+ */
|
|
|
+ private $siretNumber;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @ORM\Column(type="string", length=10, nullable=true)
|
|
|
+ */
|
|
|
+ private $waldecNumber;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @ORM\Column(type="string", length=5, nullable=true)
|
|
|
+ */
|
|
|
+ private $apeNumber;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @ORM\Column(type="string", length=50, nullable=true)
|
|
|
+ */
|
|
|
+ private $tvaNumber;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @ORM\Column(type="string", length=40, nullable=true)
|
|
|
+ */
|
|
|
+ private $otherType;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @ORM\Column(type="string", length=80, nullable=true)
|
|
|
+ */
|
|
|
+ private $acronym;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @ORM\Column(type="string", length=255, nullable=true)
|
|
|
+ */
|
|
|
+ private $facebook;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @ORM\Column(type="string", length=255, nullable=true)
|
|
|
+ */
|
|
|
+ private $twitter;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @ORM\Column(type="string", length=255, nullable=true)
|
|
|
+ */
|
|
|
+ private $instagram;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @ORM\Column(type="string", length=35, nullable=true)
|
|
|
+ */
|
|
|
+ private $collectiveAgreement;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @ORM\Column(type="string", length=255, nullable=true)
|
|
|
+ * @Assert\Choice(callback={"\App\Enum\Organization\OpcaEnum", "toArray"})
|
|
|
+ */
|
|
|
+ private $opca;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @ORM\Column(type="string", length=35, nullable=true)
|
|
|
+ */
|
|
|
+ private $icomNumber;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @ORM\Column(type="string", length=35, nullable=true)
|
|
|
+ */
|
|
|
+ private $urssafNumber;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @ORM\Column(type="string", length=20, nullable=true)
|
|
|
+ */
|
|
|
+ private $youngApproval;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @ORM\Column(type="string", length=20, nullable=true)
|
|
|
+ */
|
|
|
+ private $trainingApproval;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @ORM\Column(type="string", length=50, nullable=true)
|
|
|
+ */
|
|
|
+ private $otherApproval;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @ORM\Column(type="string", length=35, nullable=true)
|
|
|
+ */
|
|
|
+ private $prefectureName;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @ORM\Column(type="string", length=20, nullable=true)
|
|
|
+ */
|
|
|
+ private $prefectureNumber;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @ORM\Column(type="string", length=255, nullable=true)
|
|
|
+ * @Assert\Choice(callback={"\App\Enum\Organization\CategoryEnum", "toArray"})
|
|
|
+ */
|
|
|
+ private $category;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @ORM\Column(type="string", length=255, nullable=true)
|
|
|
+ * @Assert\Choice(callback={"\App\Enum\Organization\SchoolCategoryEnum", "toArray"})
|
|
|
+ */
|
|
|
+ private $schoolCategory;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @ORM\Column(type="string", length=255, nullable=true)
|
|
|
+ * @Assert\Choice(callback={"\App\Enum\Organization\TypeEstablishmentEnum", "toArray"})
|
|
|
+ */
|
|
|
+ private $typeEstablishment;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @ORM\Column(type="string", length=255, nullable=true)
|
|
|
+ * @Assert\Choice(callback={"\App\Enum\Organization\TypeEstablishmentDetailEnum", "toArray"})
|
|
|
+ */
|
|
|
+ private $typeEstablishmentDetail;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @ORM\Column(type="float", nullable=true)
|
|
|
+ */
|
|
|
+ private $budget;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @ORM\Column(type="boolean", nullable=true)
|
|
|
+ */
|
|
|
+ private $isPedagogicIsPrincipalActivity;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @ORM\Column(type="float", nullable=true)
|
|
|
+ */
|
|
|
+ private $pedagogicBudget;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @ORM\Column(type="boolean", nullable=true)
|
|
|
+ */
|
|
|
+ private $isPerformanceContractor;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @ORM\Column(type="string", length=20, nullable=true)
|
|
|
+ */
|
|
|
+ private $ffecApproval;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @ORM\Column(type="boolean")
|
|
|
+ */
|
|
|
+ private $portailVisibility;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @ORM\Column(type="integer", nullable=true)
|
|
|
+ */
|
|
|
+ private $cmsId;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @ORM\Column(type="text", nullable=true)
|
|
|
+ */
|
|
|
+ private $otherPractice;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @ORM\ManyToMany(targetEntity=ContactPoint::class, mappedBy="organization")
|
|
|
+ * @ApiSubresource()
|
|
|
+ */
|
|
|
+ private $contactPoints;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @ORM\ManyToMany(targetEntity=BankAccount::class, mappedBy="organization")
|
|
|
+ * @ApiSubresource()
|
|
|
+ */
|
|
|
+ private $bankAccounts;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @ORM\OneToMany(targetEntity=OrganizationAddressPostal::class, mappedBy="organization", orphanRemoval=true)
|
|
|
+ * @ApiSubresource()
|
|
|
+ */
|
|
|
+ private $organizationAddressPostals;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @ORM\OneToMany(targetEntity=OrganizationLicence::class, mappedBy="organization", orphanRemoval=true)
|
|
|
+ */
|
|
|
+ private $organizationLicences;
|
|
|
+
|
|
|
public function __construct()
|
|
|
{
|
|
|
$this->networkOrganizations = new ArrayCollection();
|
|
|
$this->networkOrganizationChildren = new ArrayCollection();
|
|
|
+ $this->contactPoints = new ArrayCollection();
|
|
|
+ $this->bankAccounts = new ArrayCollection();
|
|
|
+ $this->organizationAddressPostals = new ArrayCollection();
|
|
|
+ $this->organizationLicences = new ArrayCollection();
|
|
|
}
|
|
|
|
|
|
public function getId(): ?int
|
|
|
@@ -222,4 +421,514 @@ class Organization
|
|
|
|
|
|
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 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 getOtherPractice(): ?string
|
|
|
+ {
|
|
|
+ return $this->otherPractice;
|
|
|
+ }
|
|
|
+
|
|
|
+ public function setOtherPractice(?string $otherPractice): self
|
|
|
+ {
|
|
|
+ $this->otherPractice = $otherPractice;
|
|
|
+
|
|
|
+ return $this;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @return Collection|ContactPoint[]
|
|
|
+ */
|
|
|
+ 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;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @return Collection|BankAccount[]
|
|
|
+ */
|
|
|
+ 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;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @return Collection|OrganizationAddressPostal[]
|
|
|
+ */
|
|
|
+ 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;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @return Collection|OrganizationLicence[]
|
|
|
+ */
|
|
|
+ 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;
|
|
|
+ }
|
|
|
}
|