src/Entity/Distributors.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\DistributorsRepository;
  4. use Doctrine\Common\Collections\ArrayCollection;
  5. use Doctrine\Common\Collections\Collection;
  6. use Doctrine\ORM\Mapping as ORM;
  7. #[ORM\Entity(repositoryClassDistributorsRepository::class)]
  8. class Distributors
  9. {
  10.     #[ORM\Id]
  11.     #[ORM\GeneratedValue]
  12.     #[ORM\Column(type'integer')]
  13.     private $id;
  14.     #[ORM\Column(type'string'length255)]
  15.     private $distributorName;
  16.     #[ORM\Column(type'string'length255nullabletrue)]
  17.     private $logo;
  18.     #[ORM\Column(type'string'length255nullabletrue)]
  19.     private $telephone;
  20.     #[ORM\Column(type'string'length255)]
  21.     private $email;
  22.     #[ORM\Column(type'string'length255nullabletrue)]
  23.     private $website;
  24.     #[ORM\Column(type'string'length255nullabletrue)]
  25.     private $about;
  26.     #[ORM\Column(type'text'nullabletrue)]
  27.     private $operatingHours;
  28.     #[ORM\Column(type'text'nullabletrue)]
  29.     private $refundPolicy;
  30.     #[ORM\Column(type'text'nullabletrue)]
  31.     private $salesTaxPolicy;
  32.     #[ORM\Column(type'boolean'nullabletrue)]
  33.     private $isManufaturer;
  34.     #[ORM\Column(type'integer'nullabletrue)]
  35.     private $themeId;
  36.     #[ORM\Column(type'datetime')]
  37.     private $modified;
  38.     #[ORM\Column(type'datetime')]
  39.     private $created;
  40.     #[ORM\OneToMany(targetEntityDistributorClinicPrices::class, mappedBy'distributor')]
  41.     private $distributorClinicPrices;
  42.     #[ORM\OneToMany(targetEntityDistributorProducts::class, mappedBy'distributor')]
  43.     private $distributorProducts;
  44.     #[ORM\OneToMany(targetEntityDistributorUsers::class, mappedBy'distributor')]
  45.     private $distributorUsers;
  46.     #[ORM\OneToMany(targetEntityEventLog::class, mappedBy'distributor')]
  47.     private $eventLogs;
  48.     #[ORM\OneToMany(targetEntityOrderItems::class, mappedBy'distributor')]
  49.     private $orderItems;
  50.     #[ORM\OneToMany(targetEntityListItems::class, mappedBy'distributor')]
  51.     private $listItems;
  52.     #[ORM\OneToMany(targetEntityBasketItems::class, mappedBy'distributor')]
  53.     private $basketItems;
  54.     #[ORM\OneToMany(targetEntityClinicProducts::class, mappedBy'distributor')]
  55.     private $clinicProducts;
  56.     #[ORM\OneToMany(targetEntityAvailabilityTracker::class, mappedBy'distributor')]
  57.     private $availabilityTrackers;
  58.     #[ORM\Column(type'string'length3nullabletrue)]
  59.     private $poNumberPrefix;
  60.     #[ORM\OneToMany(targetEntityChatParticipants::class, mappedBy'distributor')]
  61.     private $chatParticipants;
  62.     #[ORM\OneToMany(targetEntityChatMessages::class, mappedBy'distributor')]
  63.     private $chatMessages;
  64.     #[ORM\OneToMany(targetEntityNotifications::class, mappedBy'distributor')]
  65.     private $notifications;
  66.     #[ORM\OneToMany(targetEntityOrderStatus::class, mappedBy'distributor')]
  67.     private $orderStatuses;
  68.     #[ORM\Column(type'string'length255nullabletrue)]
  69.     private $addressStreet;
  70.     #[ORM\Column(type'string'length255nullabletrue)]
  71.     private $addressCity;
  72.     #[ORM\Column(type'string'length255nullabletrue)]
  73.     private $addressPostalCode;
  74.     #[ORM\Column(type'string'length255nullabletrue)]
  75.     private $addressState;
  76.     #[ORM\ManyToOne(targetEntityCountries::class, inversedBy'distributors')]
  77.     private $addressCountry;
  78.     #[ORM\Column(type'text'nullabletrue)]
  79.     private $shippingPolicy;
  80.     #[ORM\Column(type'string'length255nullabletrue)]
  81.     private $isoCode;
  82.     #[ORM\Column(type'string'length255nullabletrue)]
  83.     private $intlCode;
  84.     #[ORM\OneToMany(targetEntityDistributorUserPermissions::class, mappedBy'distributor')]
  85.     private $distributorUserPermissions;
  86.     #[ORM\OneToOne(targetEntityApiDetails::class, mappedBy'distributor'cascade: ['persist''remove'])]
  87.     private $api;
  88.     #[ORM\OneToMany(targetEntityDistributorClinics::class, mappedBy'distributor')]
  89.     private $distributorClinics;
  90.     #[ORM\Column(type'string'length255nullabletrue)]
  91.     private $hashedEmail;
  92.     #[ORM\ManyToOne(targetEntityTracking::class, inversedBy'distributors')]
  93.     #[ORM\JoinColumn(nullablefalse)]
  94.     private $tracking;
  95.     #[ORM\Column(type'string'length255nullabletrue)]
  96.     private $domainName;
  97.     #[ORM\Column(type'integer'nullabletrue)]
  98.     private $isApproved;
  99.     #[ORM\Column(type'string'length255nullabletrue)]
  100.     private $managerFirstName;
  101.     #[ORM\Column(type'string'length255nullabletrue)]
  102.     private $managerLastName;
  103.     #[ORM\Column(type'string'length255nullabletrue)]
  104.     private $tradeLicense;
  105.     #[ORM\Column(type'string'length255nullabletrue)]
  106.     private $tradeLicenseNo;
  107.     #[ORM\Column(type'date'nullabletrue)]
  108.     private $tradeLicenseExpDate;
  109.     #[ORM\Column(type'string'length255nullabletrue)]
  110.     private $managerIdNo;
  111.     #[ORM\Column(type'date'nullabletrue)]
  112.     private $managerIdExpDate;
  113.     #[ORM\OneToMany(targetEntityControlledDrugFiles::class, mappedBy'distributor')]
  114.     private $controlledDrugFiles;
  115.     public function __construct()
  116.     {
  117.         $this->setModified(new \DateTime());
  118.         if ($this->getCreated() == null) {
  119.             $this->setCreated(new \DateTime());
  120.         }
  121.         $this->distributors = new ArrayCollection();
  122.         $this->distributorClinicPrices = new ArrayCollection();
  123.         $this->distributorProducts = new ArrayCollection();
  124.         $this->distributorUsers = new ArrayCollection();
  125.         $this->eventLogs = new ArrayCollection();
  126.         $this->orderItems = new ArrayCollection();
  127.         $this->listItems = new ArrayCollection();
  128.         $this->basketItems = new ArrayCollection();
  129.         $this->clinicProducts = new ArrayCollection();
  130.         $this->availabilityTrackers = new ArrayCollection();
  131.         $this->chatParticipants = new ArrayCollection();
  132.         $this->chatMessages = new ArrayCollection();
  133.         $this->notifications = new ArrayCollection();
  134.         $this->orderStatuses = new ArrayCollection();
  135.         $this->distributorUserPermissions = new ArrayCollection();
  136.         $this->refreshTokens = new ArrayCollection();
  137.         $this->distributorClinics = new ArrayCollection();
  138.         $this->controlledDrugFiles = new ArrayCollection();
  139.     }
  140.     public function getId(): ?int
  141.     {
  142.         return $this->id;
  143.     }
  144.     public function getDistributorName(): ?string
  145.     {
  146.         return $this->distributorName;
  147.     }
  148.     public function setDistributorName(string $distributorName): self
  149.     {
  150.         $this->distributorName $distributorName;
  151.         return $this;
  152.     }
  153.     public function getLogo(): ?string
  154.     {
  155.         return $this->logo;
  156.     }
  157.     public function setLogo(string $logo): self
  158.     {
  159.         $this->logo $logo;
  160.         return $this;
  161.     }
  162.     public function getEmail(): ?string
  163.     {
  164.         return $this->email;
  165.     }
  166.     public function setEmail(string $email): self
  167.     {
  168.         $this->email $email;
  169.         return $this;
  170.     }
  171.     public function getTelephone(): ?string
  172.     {
  173.         return $this->telephone;
  174.     }
  175.     public function setTelephone(string $telephone): self
  176.     {
  177.         $this->telephone $telephone;
  178.         return $this;
  179.     }
  180.     public function getWebsite(): ?string
  181.     {
  182.         return $this->website;
  183.     }
  184.     public function setWebsite(string $website): self
  185.     {
  186.         $this->website $website;
  187.         return $this;
  188.     }
  189.     public function getAbout(): ?string
  190.     {
  191.         return $this->about;
  192.     }
  193.     public function setAbout(string $about): self
  194.     {
  195.         $this->about $about;
  196.         return $this;
  197.     }
  198.     public function getOperatingHours(): ?string
  199.     {
  200.         return $this->operatingHours;
  201.     }
  202.     public function setOperatingHours(string $operatingHours): self
  203.     {
  204.         $this->operatingHours $operatingHours;
  205.         return $this;
  206.     }
  207.     public function getRefundPolicy(): ?string
  208.     {
  209.         return $this->refundPolicy;
  210.     }
  211.     public function setRefundPolicy(string $refundPolicy): self
  212.     {
  213.         $this->refundPolicy $refundPolicy;
  214.         return $this;
  215.     }
  216.     public function getSalesTaxPolicy(): ?string
  217.     {
  218.         return $this->salesTaxPolicy;
  219.     }
  220.     public function setSalesTaxPolicy(string $salesTaxPolicy): self
  221.     {
  222.         $this->salesTaxPolicy $salesTaxPolicy;
  223.         return $this;
  224.     }
  225.     public function getIsManufaturer(): ?bool
  226.     {
  227.         return $this->isManufaturer;
  228.     }
  229.     public function setIsManufaturer(bool $isManufaturer): self
  230.     {
  231.         $this->isManufaturer $isManufaturer;
  232.         return $this;
  233.     }
  234.     public function getThemeId(): ?int
  235.     {
  236.         return $this->themeId;
  237.     }
  238.     public function setThemeId(?int $themeId): self
  239.     {
  240.         $this->themeId $themeId;
  241.         return $this;
  242.     }
  243.     public function getModified(): ?\DateTimeInterface
  244.     {
  245.         return $this->modified;
  246.     }
  247.     public function setModified(\DateTimeInterface $modified): self
  248.     {
  249.         $this->modified $modified;
  250.         return $this;
  251.     }
  252.     public function getCreated(): ?\DateTimeInterface
  253.     {
  254.         return $this->created;
  255.     }
  256.     public function setCreated(\DateTimeInterface $created): self
  257.     {
  258.         $this->created $created;
  259.         return $this;
  260.     }
  261.     /**
  262.      * @return Collection|DistributorClinicPrices[]
  263.      */
  264.     public function getDistributorClinicPrices(): Collection
  265.     {
  266.         return $this->distributorClinicPrices;
  267.     }
  268.     public function addDistributorClinicPrice(DistributorClinicPrices $distributorClinicPrice): self
  269.     {
  270.         if (!$this->distributorClinicPrices->contains($distributorClinicPrice)) {
  271.             $this->distributorClinicPrices[] = $distributorClinicPrice;
  272.             $distributorClinicPrice->setDistributor($this);
  273.         }
  274.         return $this;
  275.     }
  276.     public function removeDistributorClinicPrice(DistributorClinicPrices $distributorClinicPrice): self
  277.     {
  278.         if ($this->distributorClinicPrices->removeElement($distributorClinicPrice)) {
  279.             // set the owning side to null (unless already changed)
  280.             if ($distributorClinicPrice->getDistributor() === $this) {
  281.                 $distributorClinicPrice->setDistributor(null);
  282.             }
  283.         }
  284.         return $this;
  285.     }
  286.     /**
  287.      * @return Collection|DistributorProducts[]
  288.      */
  289.     public function getDistributorProducts(): Collection
  290.     {
  291.         return $this->distributorProducts;
  292.     }
  293.     public function addDistributorProduct(DistributorProducts $distributorProduct): self
  294.     {
  295.         if (!$this->distributorProducts->contains($distributorProduct)) {
  296.             $this->distributorProducts[] = $distributorProduct;
  297.             $distributorProduct->setDistributor($this);
  298.         }
  299.         return $this;
  300.     }
  301.     public function removeDistributorProduct(DistributorProducts $distributorProduct): self
  302.     {
  303.         if ($this->distributorProducts->removeElement($distributorProduct)) {
  304.             // set the owning side to null (unless already changed)
  305.             if ($distributorProduct->getDistributor() === $this) {
  306.                 $distributorProduct->setDistributor(null);
  307.             }
  308.         }
  309.         return $this;
  310.     }
  311.     /**
  312.      * @return Collection|DistributorUsers[]
  313.      */
  314.     public function getDistributorUsers(): Collection
  315.     {
  316.         return $this->distributorUsers;
  317.     }
  318.     public function addDistributorUser(DistributorUsers $distributorUser): self
  319.     {
  320.         if (!$this->distributorUsers->contains($distributorUser)) {
  321.             $this->distributorUsers[] = $distributorUser;
  322.             $distributorUser->setDistributor($this);
  323.         }
  324.         return $this;
  325.     }
  326.     public function removeDistributorUser(DistributorUsers $distributorUser): self
  327.     {
  328.         if ($this->distributorUsers->removeElement($distributorUser)) {
  329.             // set the owning side to null (unless already changed)
  330.             if ($distributorUser->getDistributor() === $this) {
  331.                 $distributorUser->setDistributor(null);
  332.             }
  333.         }
  334.         return $this;
  335.     }
  336.     /**
  337.      * @return Collection|EventLog[]
  338.      */
  339.     public function getEventLogs(): Collection
  340.     {
  341.         return $this->eventLogs;
  342.     }
  343.     public function addEventLog(EventLog $eventLog): self
  344.     {
  345.         if (!$this->eventLogs->contains($eventLog)) {
  346.             $this->eventLogs[] = $eventLog;
  347.             $eventLog->setDistributor($this);
  348.         }
  349.         return $this;
  350.     }
  351.     public function removeEventLog(EventLog $eventLog): self
  352.     {
  353.         if ($this->eventLogs->removeElement($eventLog)) {
  354.             // set the owning side to null (unless already changed)
  355.             if ($eventLog->getDistributor() === $this) {
  356.                 $eventLog->setDistributor(null);
  357.             }
  358.         }
  359.         return $this;
  360.     }
  361.     /**
  362.      * @return Collection|OrderItems[]
  363.      */
  364.     public function getOrderItems(): Collection
  365.     {
  366.         return $this->orderItems;
  367.     }
  368.     public function addOrderItem(OrderItems $orderItem): self
  369.     {
  370.         if (!$this->orderItems->contains($orderItem)) {
  371.             $this->orderItems[] = $orderItem;
  372.             $orderItem->setDistributor($this);
  373.         }
  374.         return $this;
  375.     }
  376.     public function removeOrderItem(OrderItems $orderItem): self
  377.     {
  378.         if ($this->orderItems->removeElement($orderItem)) {
  379.             // set the owning side to null (unless already changed)
  380.             if ($orderItem->getDistributor() === $this) {
  381.                 $orderItem->setDistributor(null);
  382.             }
  383.         }
  384.         return $this;
  385.     }
  386.     /**
  387.      * @return Collection<int, ListItems>
  388.      */
  389.     public function getListItems(): Collection
  390.     {
  391.         return $this->listItems;
  392.     }
  393.     public function addListItem(ListItems $listItem): self
  394.     {
  395.         if (!$this->listItems->contains($listItem)) {
  396.             $this->listItems[] = $listItem;
  397.             $listItem->setDistributor($this);
  398.         }
  399.         return $this;
  400.     }
  401.     public function removeListItem(ListItems $listItem): self
  402.     {
  403.         if ($this->listItems->removeElement($listItem)) {
  404.             // set the owning side to null (unless already changed)
  405.             if ($listItem->getDistributor() === $this) {
  406.                 $listItem->setDistributor(null);
  407.             }
  408.         }
  409.         return $this;
  410.     }
  411.     /**
  412.      * @return Collection<int, BasketItems>
  413.      */
  414.     public function getBasketItems(): Collection
  415.     {
  416.         return $this->basketItems;
  417.     }
  418.     public function addBasketItem(BasketItems $basketItem): self
  419.     {
  420.         if (!$this->basketItems->contains($basketItem)) {
  421.             $this->basketItems[] = $basketItem;
  422.             $basketItem->setDistributor($this);
  423.         }
  424.         return $this;
  425.     }
  426.     public function removeBasketItem(BasketItems $basketItem): self
  427.     {
  428.         if ($this->basketItems->removeElement($basketItem)) {
  429.             // set the owning side to null (unless already changed)
  430.             if ($basketItem->getDistributor() === $this) {
  431.                 $basketItem->setDistributor(null);
  432.             }
  433.         }
  434.         return $this;
  435.     }
  436.     /**
  437.      * @return Collection<int, ClinicProducts>
  438.      */
  439.     public function getClinicProducts(): Collection
  440.     {
  441.         return $this->clinicProducts;
  442.     }
  443.     public function addClinicProduct(ClinicProducts $clinicProduct): self
  444.     {
  445.         if (!$this->clinicProducts->contains($clinicProduct)) {
  446.             $this->clinicProducts[] = $clinicProduct;
  447.             $clinicProduct->setDistributor($this);
  448.         }
  449.         return $this;
  450.     }
  451.     public function removeClinicProduct(ClinicProducts $clinicProduct): self
  452.     {
  453.         if ($this->clinicProducts->removeElement($clinicProduct)) {
  454.             // set the owning side to null (unless already changed)
  455.             if ($clinicProduct->getDistributor() === $this) {
  456.                 $clinicProduct->setDistributor(null);
  457.             }
  458.         }
  459.         return $this;
  460.     }
  461.     /**
  462.      * @return Collection<int, AvailabilityTracker>
  463.      */
  464.     public function getAvailabilityTrackers(): Collection
  465.     {
  466.         return $this->availabilityTrackers;
  467.     }
  468.     public function addAvailabilityTracker(AvailabilityTracker $availabilityTracker): self
  469.     {
  470.         if (!$this->availabilityTrackers->contains($availabilityTracker)) {
  471.             $this->availabilityTrackers[] = $availabilityTracker;
  472.             $availabilityTracker->setDistributor($this);
  473.         }
  474.         return $this;
  475.     }
  476.     public function removeAvailabilityTracker(AvailabilityTracker $availabilityTracker): self
  477.     {
  478.         if ($this->availabilityTrackers->removeElement($availabilityTracker)) {
  479.             // set the owning side to null (unless already changed)
  480.             if ($availabilityTracker->getDistributor() === $this) {
  481.                 $availabilityTracker->setDistributor(null);
  482.             }
  483.         }
  484.         return $this;
  485.     }
  486.     public function getPoNumberPrefix(): ?string
  487.     {
  488.         return $this->poNumberPrefix;
  489.     }
  490.     public function setPoNumberPrefix(?string $poNumberPrefix): self
  491.     {
  492.         $this->poNumberPrefix $poNumberPrefix;
  493.         return $this;
  494.     }
  495.     /**
  496.      * @return Collection<int, ChatParticipants>
  497.      */
  498.     public function getChatParticipants(): Collection
  499.     {
  500.         return $this->chatParticipants;
  501.     }
  502.     public function addChatParticipant(ChatParticipants $chatParticipant): self
  503.     {
  504.         if (!$this->chatParticipants->contains($chatParticipant)) {
  505.             $this->chatParticipants[] = $chatParticipant;
  506.             $chatParticipant->setDistributor($this);
  507.         }
  508.         return $this;
  509.     }
  510.     public function removeChatParticipant(ChatParticipants $chatParticipant): self
  511.     {
  512.         if ($this->chatParticipants->removeElement($chatParticipant)) {
  513.             // set the owning side to null (unless already changed)
  514.             if ($chatParticipant->getDistributor() === $this) {
  515.                 $chatParticipant->setDistributor(null);
  516.             }
  517.         }
  518.         return $this;
  519.     }
  520.     /**
  521.      * @return Collection<int, ChatMessages>
  522.      */
  523.     public function getChatMessages(): Collection
  524.     {
  525.         return $this->chatMessages;
  526.     }
  527.     public function addChatMessage(ChatMessages $chatMessage): self
  528.     {
  529.         if (!$this->chatMessages->contains($chatMessage)) {
  530.             $this->chatMessages[] = $chatMessage;
  531.             $chatMessage->setDistributor($this);
  532.         }
  533.         return $this;
  534.     }
  535.     public function removeChatMessage(ChatMessages $chatMessage): self
  536.     {
  537.         if ($this->chatMessages->removeElement($chatMessage)) {
  538.             // set the owning side to null (unless already changed)
  539.             if ($chatMessage->getDistributor() === $this) {
  540.                 $chatMessage->setDistributor(null);
  541.             }
  542.         }
  543.         return $this;
  544.     }
  545.     /**
  546.      * @return Collection<int, Notifications>
  547.      */
  548.     public function getNotifications(): Collection
  549.     {
  550.         return $this->notifications;
  551.     }
  552.     public function addNotification(Notifications $notification): self
  553.     {
  554.         if (!$this->notifications->contains($notification)) {
  555.             $this->notifications[] = $notification;
  556.             $notification->setDistributors($this);
  557.         }
  558.         return $this;
  559.     }
  560.     public function removeNotification(Notifications $notification): self
  561.     {
  562.         if ($this->notifications->removeElement($notification)) {
  563.             // set the owning side to null (unless already changed)
  564.             if ($notification->getDistributors() === $this) {
  565.                 $notification->setDistributors(null);
  566.             }
  567.         }
  568.         return $this;
  569.     }
  570.     /**
  571.      * @return Collection<int, OrderStatus>
  572.      */
  573.     public function getOrderStatuses(): Collection
  574.     {
  575.         return $this->orderStatuses;
  576.     }
  577.     public function addOrderStatus(OrderStatus $orderStatus): self
  578.     {
  579.         if (!$this->orderStatuses->contains($orderStatus)) {
  580.             $this->orderStatuses[] = $orderStatus;
  581.             $orderStatus->setDistributor($this);
  582.         }
  583.         return $this;
  584.     }
  585.     public function removeOrderStatus(OrderStatus $orderStatus): self
  586.     {
  587.         if ($this->orderStatuses->removeElement($orderStatus)) {
  588.             // set the owning side to null (unless already changed)
  589.             if ($orderStatus->getDistributor() === $this) {
  590.                 $orderStatus->setDistributor(null);
  591.             }
  592.         }
  593.         return $this;
  594.     }
  595.     public function getAddressStreet(): ?string
  596.     {
  597.         return $this->addressStreet;
  598.     }
  599.     public function setAddressStreet(?string $addressStreet): self
  600.     {
  601.         $this->addressStreet $addressStreet;
  602.         return $this;
  603.     }
  604.     public function getAddressCity(): ?string
  605.     {
  606.         return $this->addressCity;
  607.     }
  608.     public function setAddressCity(?string $addressCity): self
  609.     {
  610.         $this->addressCity $addressCity;
  611.         return $this;
  612.     }
  613.     public function getAddressPostalCode(): ?string
  614.     {
  615.         return $this->addressPostalCode;
  616.     }
  617.     public function setAddressPostalCode(?string $addressPostalCode): self
  618.     {
  619.         $this->addressPostalCode $addressPostalCode;
  620.         return $this;
  621.     }
  622.     public function getAddressState(): ?string
  623.     {
  624.         return $this->addressState;
  625.     }
  626.     public function setAddressState(?string $addressState): self
  627.     {
  628.         $this->addressState $addressState;
  629.         return $this;
  630.     }
  631.     public function getAddressCountry(): ?Countries
  632.     {
  633.         return $this->addressCountry;
  634.     }
  635.     public function setAddressCountry(?Countries $addressCountry): self
  636.     {
  637.         $this->addressCountry $addressCountry;
  638.         return $this;
  639.     }
  640.     public function getShippingPolicy(): ?string
  641.     {
  642.         return $this->shippingPolicy;
  643.     }
  644.     public function setShippingPolicy(?string $shippingPolicy): self
  645.     {
  646.         $this->shippingPolicy $shippingPolicy;
  647.         return $this;
  648.     }
  649.     public function getIsoCode(): ?string
  650.     {
  651.         return $this->isoCode;
  652.     }
  653.     public function setIsoCode(?string $isoCode): self
  654.     {
  655.         $this->isoCode $isoCode;
  656.         return $this;
  657.     }
  658.     public function getIntlCode(): ?string
  659.     {
  660.         return $this->intlCode;
  661.     }
  662.     public function setIntlCode(?string $intlCode): self
  663.     {
  664.         $this->intlCode $intlCode;
  665.         return $this;
  666.     }
  667.     /**
  668.      * @return Collection<int, DistributorUserPermissions>
  669.      */
  670.     public function getDistributorUserPermissions(): Collection
  671.     {
  672.         return $this->distributorUserPermissions;
  673.     }
  674.     public function addDistributorUserPermission(DistributorUserPermissions $distributorUserPermission): self
  675.     {
  676.         if (!$this->distributorUserPermissions->contains($distributorUserPermission)) {
  677.             $this->distributorUserPermissions[] = $distributorUserPermission;
  678.             $distributorUserPermission->setDistributor($this);
  679.         }
  680.         return $this;
  681.     }
  682.     public function removeDistributorUserPermission(DistributorUserPermissions $distributorUserPermission): self
  683.     {
  684.         if ($this->distributorUserPermissions->removeElement($distributorUserPermission)) {
  685.             // set the owning side to null (unless already changed)
  686.             if ($distributorUserPermission->getDistributor() === $this) {
  687.                 $distributorUserPermission->setDistributor(null);
  688.             }
  689.         }
  690.         return $this;
  691.     }
  692.     public function getApiDetails(): ?ApiDetails
  693.     {
  694.         return $this->api;
  695.     }
  696.     public function setApiDetails(ApiDetails $api): self
  697.     {
  698.         // set the owning side of the relation if necessary
  699.         if ($api->getDistributor() !== $this) {
  700.             $api->setDistributor($this);
  701.         }
  702.         $this->api $api;
  703.         return $this;
  704.     }
  705.     /**
  706.      * @return Collection<int, DistributorClinics>
  707.      */
  708.     public function getDistributorClinics(): Collection
  709.     {
  710.         return $this->distributorClinics;
  711.     }
  712.     public function addDistributorClinic(DistributorClinics $distributorClinic): self
  713.     {
  714.         if (!$this->distributorClinics->contains($distributorClinic)) {
  715.             $this->distributorClinics[] = $distributorClinic;
  716.             $distributorClinic->setDistributor($this);
  717.         }
  718.         return $this;
  719.     }
  720.     public function removeDistributorClinic(DistributorClinics $distributorClinic): self
  721.     {
  722.         if ($this->distributorClinics->removeElement($distributorClinic)) {
  723.             // set the owning side to null (unless already changed)
  724.             if ($distributorClinic->getDistributor() === $this) {
  725.                 $distributorClinic->setDistributor(null);
  726.             }
  727.         }
  728.         return $this;
  729.     }
  730.     public function getHashedEmail(): ?string
  731.     {
  732.         return $this->hashedEmail;
  733.     }
  734.     public function setHashedEmail(?string $hashedEmail): self
  735.     {
  736.         $this->hashedEmail $hashedEmail;
  737.         return $this;
  738.     }
  739.     public function getTracking(): ?Tracking
  740.     {
  741.         return $this->tracking;
  742.     }
  743.     public function setTracking(?Tracking $tracking): self
  744.     {
  745.         $this->tracking $tracking;
  746.         return $this;
  747.     }
  748.     public function getDomainName(): ?string
  749.     {
  750.         return $this->domainName;
  751.     }
  752.     public function setDomainName(?string $domainName): self
  753.     {
  754.         $this->domainName $domainName;
  755.         return $this;
  756.     }
  757.     public function getIsApproved(): ?int
  758.     {
  759.         return $this->isApproved;
  760.     }
  761.     public function setIsApproved(?int $isApproved): self
  762.     {
  763.         $this->isApproved $isApproved;
  764.         return $this;
  765.     }
  766.     public function getManagerFirstName(): ?string
  767.     {
  768.         return $this->managerFirstName;
  769.     }
  770.     public function setManagerFirstName(?string $managerFirstName): self
  771.     {
  772.         $this->managerFirstName $managerFirstName;
  773.         return $this;
  774.     }
  775.     public function getManagerLastName(): ?string
  776.     {
  777.         return $this->managerLastName;
  778.     }
  779.     public function setManagerLastName(?string $managerLastName): self
  780.     {
  781.         $this->managerLastName $managerLastName;
  782.         return $this;
  783.     }
  784.     public function getTradeLicense(): ?string
  785.     {
  786.         return $this->tradeLicense;
  787.     }
  788.     public function setTradeLicense(?string $tradeLicense): self
  789.     {
  790.         $this->tradeLicense $tradeLicense;
  791.         return $this;
  792.     }
  793.     public function getTradeLicenseNo(): ?string
  794.     {
  795.         return $this->tradeLicenseNo;
  796.     }
  797.     public function setTradeLicenseNo(?string $tradeLicenseNo): self
  798.     {
  799.         $this->tradeLicenseNo $tradeLicenseNo;
  800.         return $this;
  801.     }
  802.     public function getTradeLicenseExpDate(): ?\DateTimeInterface
  803.     {
  804.         return $this->tradeLicenseExpDate;
  805.     }
  806.     public function setTradeLicenseExpDate(?\DateTimeInterface $tradeLicenseExpDate): self
  807.     {
  808.         $this->tradeLicenseExpDate $tradeLicenseExpDate;
  809.         return $this;
  810.     }
  811.     public function getManagerIdNo(): ?string
  812.     {
  813.         return $this->managerIdNo;
  814.     }
  815.     public function setManagerIdNo(?string $managerIdNo): self
  816.     {
  817.         $this->managerIdNo $managerIdNo;
  818.         return $this;
  819.     }
  820.     public function getManagerIdExpDate(): ?\DateTimeInterface
  821.     {
  822.         return $this->managerIdExpDate;
  823.     }
  824.     public function setManagerIdExpDate(?\DateTimeInterface $managerIdExpDate): self
  825.     {
  826.         $this->managerIdExpDate $managerIdExpDate;
  827.         return $this;
  828.     }
  829.     /**
  830.      * @return Collection<int, ControlledDrugFiles>
  831.      */
  832.     public function getControlledDrugFiles(): Collection
  833.     {
  834.         return $this->controlledDrugFiles;
  835.     }
  836.     public function addControlledDrugFile(ControlledDrugFiles $controlledDrugFile): self
  837.     {
  838.         if (!$this->controlledDrugFiles->contains($controlledDrugFile)) {
  839.             $this->controlledDrugFiles[] = $controlledDrugFile;
  840.             $controlledDrugFile->setDistributor($this);
  841.         }
  842.         return $this;
  843.     }
  844.     public function removeControlledDrugFile(ControlledDrugFiles $controlledDrugFile): self
  845.     {
  846.         if ($this->controlledDrugFiles->removeElement($controlledDrugFile)) {
  847.             // set the owning side to null (unless already changed)
  848.             if ($controlledDrugFile->getDistributor() === $this) {
  849.                 $controlledDrugFile->setDistributor(null);
  850.             }
  851.         }
  852.         return $this;
  853.     }
  854. }