src/Entity/Distributors.php line 11
<?phpnamespace App\Entity;use App\Repository\DistributorsRepository;use Doctrine\Common\Collections\ArrayCollection;use Doctrine\Common\Collections\Collection;use Doctrine\ORM\Mapping as ORM;#[ORM\Entity(repositoryClass: DistributorsRepository::class)]class Distributors{#[ORM\Id]#[ORM\GeneratedValue]#[ORM\Column(type: 'integer')]private $id;#[ORM\Column(type: 'string', length: 255)]private $distributorName;#[ORM\Column(type: 'string', length: 255, nullable: true)]private $logo;#[ORM\Column(type: 'string', length: 255, nullable: true)]private $telephone;#[ORM\Column(type: 'string', length: 255)]private $email;#[ORM\Column(type: 'string', length: 255, nullable: true)]private $website;#[ORM\Column(type: 'text', nullable: true)]private $about;#[ORM\Column(type: 'text', nullable: true)]private $operatingHours;#[ORM\Column(type: 'text', nullable: true)]private $refundPolicy;#[ORM\Column(type: 'text', nullable: true)]private $salesTaxPolicy;#[ORM\Column(type: 'boolean', nullable: true)]private $isManufaturer;#[ORM\Column(type: 'integer', nullable: true)]private $themeId;#[ORM\Column(type: 'datetime')]private $modified;#[ORM\Column(type: 'datetime')]private $created;#[ORM\OneToMany(targetEntity: DistributorClinicPrices::class, mappedBy: 'distributor')]private $distributorClinicPrices;#[ORM\OneToMany(targetEntity: DistributorProducts::class, mappedBy: 'distributor')]private $distributorProducts;#[ORM\OneToMany(targetEntity: DistributorUsers::class, mappedBy: 'distributor')]private $distributorUsers;#[ORM\OneToMany(targetEntity: EventLog::class, mappedBy: 'distributor')]private $eventLogs;#[ORM\OneToMany(targetEntity: OrderItems::class, mappedBy: 'distributor')]private $orderItems;#[ORM\OneToMany(targetEntity: ListItems::class, mappedBy: 'distributor')]private $listItems;#[ORM\OneToMany(targetEntity: BasketItems::class, mappedBy: 'distributor')]private $basketItems;#[ORM\OneToMany(targetEntity: ClinicProducts::class, mappedBy: 'distributor')]private $clinicProducts;#[ORM\OneToMany(targetEntity: AvailabilityTracker::class, mappedBy: 'distributor')]private $availabilityTrackers;#[ORM\Column(type: 'string', length: 10, nullable: true)]private $poNumberPrefix;#[ORM\OneToMany(targetEntity: ChatParticipants::class, mappedBy: 'distributor')]private $chatParticipants;#[ORM\OneToMany(targetEntity: ChatMessages::class, mappedBy: 'distributor')]private $chatMessages;#[ORM\OneToMany(targetEntity: Notifications::class, mappedBy: 'distributor')]private $notifications;#[ORM\OneToMany(targetEntity: OrderStatus::class, mappedBy: 'distributor')]private $orderStatuses;#[ORM\Column(type: 'string', length: 255, nullable: true)]private $addressStreet;#[ORM\Column(type: 'string', length: 255, nullable: true)]private $addressCity;#[ORM\Column(type: 'string', length: 255, nullable: true)]private $addressPostalCode;#[ORM\Column(type: 'string', length: 255, nullable: true)]private $addressState;#[ORM\ManyToOne(targetEntity: Countries::class, inversedBy: 'distributors')]private $addressCountry;#[ORM\Column(type: 'text', nullable: true)]private $shippingPolicy;#[ORM\Column(type: 'string', length: 255, nullable: true)]private $isoCode;#[ORM\Column(type: 'string', length: 255, nullable: true)]private $intlCode;#[ORM\OneToMany(targetEntity: DistributorUserPermissions::class, mappedBy: 'distributor')]private $distributorUserPermissions;#[ORM\OneToOne(targetEntity: ApiDetails::class, mappedBy: 'distributor', cascade: ['persist', 'remove'])]private $api;#[ORM\OneToMany(targetEntity: DistributorClinics::class, mappedBy: 'distributor')]private $distributorClinics;#[ORM\Column(type: 'string', length: 255, nullable: true)]private $hashedEmail;#[ORM\ManyToOne(targetEntity: Tracking::class, inversedBy: 'distributors')]#[ORM\JoinColumn(nullable: false)]private $tracking;#[ORM\Column(type: 'string', length: 255, nullable: true)]private $domainName;#[ORM\Column(type: 'integer', nullable: true)]private $isApproved;#[ORM\Column(type: 'string', length: 255, nullable: true)]private $managerFirstName;#[ORM\Column(type: 'string', length: 255, nullable: true)]private $managerLastName;#[ORM\Column(type: 'string', length: 255, nullable: true)]private $tradeLicense;#[ORM\Column(type: 'string', length: 255, nullable: true)]private $tradeLicenseNo;#[ORM\Column(type: 'date', nullable: true)]private $tradeLicenseExpDate;#[ORM\Column(type: 'string', length: 255, nullable: true)]private $managerIdNo;#[ORM\Column(type: 'date', nullable: true)]private $managerIdExpDate;#[ORM\OneToMany(targetEntity: ControlledDrugFiles::class, mappedBy: 'distributor')]private $controlledDrugFiles;/*** @var Collection<int, CustomPriceLists>*/#[ORM\OneToMany(mappedBy: 'distributor', targetEntity: CustomPriceLists::class)]private Collection $customPriceLists;#[ORM\OneToOne(mappedBy: 'distributor', cascade: ['persist', 'remove'])]private ?ScraperAunthentication $scraperAunthentication = null;/*** @var Collection<int, ScraperUrls>*/#[ORM\OneToMany(mappedBy: 'distributor', targetEntity: ScraperUrls::class)]private Collection $scraperUrls;/*** @var Collection<int, ClinicDistributorContacts>*/#[ORM\OneToMany(mappedBy: 'distributor', targetEntity: ClinicDistributorContacts::class)]private Collection $clinicDistributorContacts;/*** @var Collection<int, ScraperLog>*/#[ORM\OneToMany(mappedBy: 'distributor', targetEntity: ScraperLog::class)]private Collection $scraperLogs;/*** @var Collection<int, ScraperProducts>*/#[ORM\OneToMany(mappedBy: 'distributor', targetEntity: ScraperProducts::class)]private Collection $scraperProducts;/*** @var Collection<int, AiDistributorProducts>*/#[ORM\OneToMany(mappedBy: 'distributor', targetEntity: AiDistributorProducts::class)]private Collection $aiDistributorProducts;/*** @var Collection<int, AiListItems>*/#[ORM\OneToMany(mappedBy: 'distributor', targetEntity: AiListItems::class)]private Collection $aiListItems;/*** @var Collection<int, AiBasketItems>*/#[ORM\OneToMany(mappedBy: 'distributor', targetEntity: AiBasketItems::class)]private Collection $aiBasketItems;/*** @var Collection<int, AiOrderItems>*/#[ORM\OneToMany(mappedBy: 'distributor', targetEntity: AiOrderItems::class)]private Collection $aiOrderItems;/*** @var Collection<int, AiClinicProducts>*/#[ORM\OneToMany(mappedBy: 'distributor', targetEntity: AiClinicProducts::class)]private Collection $aiClinicProducts;/*** @var Collection<int, AiCustomPriceLists>*/#[ORM\OneToMany(mappedBy: 'distributor', targetEntity: AiCustomPriceLists::class)]private Collection $aiCustomPriceLists;/*** @var Collection<int, AiControlledDrugFiles>*/#[ORM\OneToMany(mappedBy: 'distributor', targetEntity: AiControlledDrugFiles::class)]private Collection $aiControlledDrugFiles;/*** @var Collection<int, AiOrderStatus>*/#[ORM\OneToMany(mappedBy: 'distributor', targetEntity: AiOrderStatus::class)]private Collection $aiOrderStatuses;#[ORM\Column]private ?bool $hasScraper = null;public function __construct(){$date = new \DateTime("now", new \DateTimeZone('Asia/Dubai'));$this->setModified($date);if ($this->getCreated() == null){$this->setCreated($date);}$this->distributors = new ArrayCollection();$this->distributorClinicPrices = new ArrayCollection();$this->distributorProducts = new ArrayCollection();$this->distributorUsers = new ArrayCollection();$this->eventLogs = new ArrayCollection();$this->orderItems = new ArrayCollection();$this->listItems = new ArrayCollection();$this->basketItems = new ArrayCollection();$this->clinicProducts = new ArrayCollection();$this->availabilityTrackers = new ArrayCollection();$this->chatParticipants = new ArrayCollection();$this->chatMessages = new ArrayCollection();$this->notifications = new ArrayCollection();$this->orderStatuses = new ArrayCollection();$this->distributorUserPermissions = new ArrayCollection();$this->refreshTokens = new ArrayCollection();$this->distributorClinics = new ArrayCollection();$this->controlledDrugFiles = new ArrayCollection();$this->customPriceLists = new ArrayCollection();$this->scraperUrls = new ArrayCollection();$this->clinicDistributorContacts = new ArrayCollection();$this->scraperLogs = new ArrayCollection();$this->scraperImages = new ArrayCollection();$this->scraperProducts = new ArrayCollection();$this->aiDistributorProducts = new ArrayCollection();$this->aiListItems = new ArrayCollection();$this->aiBasketItems = new ArrayCollection();$this->aiOrderItems = new ArrayCollection();$this->aiClinicProducts = new ArrayCollection();$this->aiCustomPriceLists = new ArrayCollection();$this->aiControlledDrugFiles = new ArrayCollection();$this->aiOrderStatuses = new ArrayCollection();}public function getId(): ?int{return $this->id;}public function getDistributorName(): ?string{return $this->distributorName;}public function setDistributorName(string $distributorName): self{$this->distributorName = $distributorName;return $this;}public function getLogo(): ?string{return $this->logo;}public function setLogo(string $logo): self{$this->logo = $logo;return $this;}public function getEmail(): ?string{return $this->email;}public function setEmail(string $email): self{$this->email = $email;return $this;}public function getTelephone(): ?string{return $this->telephone;}public function setTelephone(string $telephone): self{$this->telephone = $telephone;return $this;}public function getWebsite(): ?string{return $this->website;}public function setWebsite(string $website): self{$this->website = $website;return $this;}public function getAbout(): ?string{return $this->about;}public function setAbout(?string $about): self{$this->about = $about;return $this;}public function getOperatingHours(): ?string{return $this->operatingHours;}public function setOperatingHours(string $operatingHours): self{$this->operatingHours = $operatingHours;return $this;}public function getRefundPolicy(): ?string{return $this->refundPolicy;}public function setRefundPolicy(string $refundPolicy): self{$this->refundPolicy = $refundPolicy;return $this;}public function getSalesTaxPolicy(): ?string{return $this->salesTaxPolicy;}public function setSalesTaxPolicy(string $salesTaxPolicy): self{$this->salesTaxPolicy = $salesTaxPolicy;return $this;}public function getIsManufaturer(): ?bool{return $this->isManufaturer;}public function setIsManufaturer(bool $isManufaturer): self{$this->isManufaturer = $isManufaturer;return $this;}public function getThemeId(): ?int{return $this->themeId;}public function setThemeId(?int $themeId): self{$this->themeId = $themeId;return $this;}public function getModified(): ?\DateTimeInterface{return $this->modified;}public function setModified(\DateTimeInterface $modified): self{$this->modified = $modified;return $this;}public function getCreated(): ?\DateTimeInterface{return $this->created;}public function setCreated(\DateTimeInterface $created): self{$this->created = $created;return $this;}/*** @return Collection|DistributorClinicPrices[]*/public function getDistributorClinicPrices(): Collection{return $this->distributorClinicPrices;}public function addDistributorClinicPrice(DistributorClinicPrices $distributorClinicPrice): self{if (!$this->distributorClinicPrices->contains($distributorClinicPrice)) {$this->distributorClinicPrices[] = $distributorClinicPrice;$distributorClinicPrice->setDistributor($this);}return $this;}public function removeDistributorClinicPrice(DistributorClinicPrices $distributorClinicPrice): self{if ($this->distributorClinicPrices->removeElement($distributorClinicPrice)) {// set the owning side to null (unless already changed)if ($distributorClinicPrice->getDistributor() === $this) {$distributorClinicPrice->setDistributor(null);}}return $this;}/*** @return Collection|DistributorProducts[]*/public function getDistributorProducts(): Collection{return $this->distributorProducts;}public function addDistributorProduct(DistributorProducts $distributorProduct): self{if (!$this->distributorProducts->contains($distributorProduct)) {$this->distributorProducts[] = $distributorProduct;$distributorProduct->setDistributor($this);}return $this;}public function removeDistributorProduct(DistributorProducts $distributorProduct): self{if ($this->distributorProducts->removeElement($distributorProduct)) {// set the owning side to null (unless already changed)if ($distributorProduct->getDistributor() === $this) {$distributorProduct->setDistributor(null);}}return $this;}/*** @return Collection|DistributorUsers[]*/public function getDistributorUsers(): Collection{return $this->distributorUsers;}public function addDistributorUser(DistributorUsers $distributorUser): self{if (!$this->distributorUsers->contains($distributorUser)) {$this->distributorUsers[] = $distributorUser;$distributorUser->setDistributor($this);}return $this;}public function removeDistributorUser(DistributorUsers $distributorUser): self{if ($this->distributorUsers->removeElement($distributorUser)) {// set the owning side to null (unless already changed)if ($distributorUser->getDistributor() === $this) {$distributorUser->setDistributor(null);}}return $this;}/*** @return Collection|EventLog[]*/public function getEventLogs(): Collection{return $this->eventLogs;}public function addEventLog(EventLog $eventLog): self{if (!$this->eventLogs->contains($eventLog)) {$this->eventLogs[] = $eventLog;$eventLog->setDistributor($this);}return $this;}public function removeEventLog(EventLog $eventLog): self{if ($this->eventLogs->removeElement($eventLog)) {// set the owning side to null (unless already changed)if ($eventLog->getDistributor() === $this) {$eventLog->setDistributor(null);}}return $this;}/*** @return Collection|OrderItems[]*/public function getOrderItems(): Collection{return $this->orderItems;}public function addOrderItem(OrderItems $orderItem): self{if (!$this->orderItems->contains($orderItem)) {$this->orderItems[] = $orderItem;$orderItem->setDistributor($this);}return $this;}public function removeOrderItem(OrderItems $orderItem): self{if ($this->orderItems->removeElement($orderItem)) {// set the owning side to null (unless already changed)if ($orderItem->getDistributor() === $this) {$orderItem->setDistributor(null);}}return $this;}/*** @return Collection<int, ListItems>*/public function getListItems(): Collection{return $this->listItems;}public function addListItem(ListItems $listItem): self{if (!$this->listItems->contains($listItem)) {$this->listItems[] = $listItem;$listItem->setDistributor($this);}return $this;}public function removeListItem(ListItems $listItem): self{if ($this->listItems->removeElement($listItem)) {// set the owning side to null (unless already changed)if ($listItem->getDistributor() === $this) {$listItem->setDistributor(null);}}return $this;}/*** @return Collection<int, BasketItems>*/public function getBasketItems(): Collection{return $this->basketItems;}public function addBasketItem(BasketItems $basketItem): self{if (!$this->basketItems->contains($basketItem)) {$this->basketItems[] = $basketItem;$basketItem->setDistributor($this);}return $this;}public function removeBasketItem(BasketItems $basketItem): self{if ($this->basketItems->removeElement($basketItem)) {// set the owning side to null (unless already changed)if ($basketItem->getDistributor() === $this) {$basketItem->setDistributor(null);}}return $this;}/*** @return Collection<int, ClinicProducts>*/public function getClinicProducts(): Collection{return $this->clinicProducts;}public function addClinicProduct(ClinicProducts $clinicProduct): self{if (!$this->clinicProducts->contains($clinicProduct)) {$this->clinicProducts[] = $clinicProduct;$clinicProduct->setDistributor($this);}return $this;}public function removeClinicProduct(ClinicProducts $clinicProduct): self{if ($this->clinicProducts->removeElement($clinicProduct)) {// set the owning side to null (unless already changed)if ($clinicProduct->getDistributor() === $this) {$clinicProduct->setDistributor(null);}}return $this;}/*** @return Collection<int, AvailabilityTracker>*/public function getAvailabilityTrackers(): Collection{return $this->availabilityTrackers;}public function addAvailabilityTracker(AvailabilityTracker $availabilityTracker): self{if (!$this->availabilityTrackers->contains($availabilityTracker)) {$this->availabilityTrackers[] = $availabilityTracker;$availabilityTracker->setDistributor($this);}return $this;}public function removeAvailabilityTracker(AvailabilityTracker $availabilityTracker): self{if ($this->availabilityTrackers->removeElement($availabilityTracker)) {// set the owning side to null (unless already changed)if ($availabilityTracker->getDistributor() === $this) {$availabilityTracker->setDistributor(null);}}return $this;}public function getPoNumberPrefix(): ?string{return $this->poNumberPrefix;}public function setPoNumberPrefix(?string $poNumberPrefix): self{$this->poNumberPrefix = $poNumberPrefix;return $this;}/*** @return Collection<int, ChatParticipants>*/public function getChatParticipants(): Collection{return $this->chatParticipants;}public function addChatParticipant(ChatParticipants $chatParticipant): self{if (!$this->chatParticipants->contains($chatParticipant)) {$this->chatParticipants[] = $chatParticipant;$chatParticipant->setDistributor($this);}return $this;}public function removeChatParticipant(ChatParticipants $chatParticipant): self{if ($this->chatParticipants->removeElement($chatParticipant)) {// set the owning side to null (unless already changed)if ($chatParticipant->getDistributor() === $this) {$chatParticipant->setDistributor(null);}}return $this;}/*** @return Collection<int, ChatMessages>*/public function getChatMessages(): Collection{return $this->chatMessages;}public function addChatMessage(ChatMessages $chatMessage): self{if (!$this->chatMessages->contains($chatMessage)) {$this->chatMessages[] = $chatMessage;$chatMessage->setDistributor($this);}return $this;}public function removeChatMessage(ChatMessages $chatMessage): self{if ($this->chatMessages->removeElement($chatMessage)) {// set the owning side to null (unless already changed)if ($chatMessage->getDistributor() === $this) {$chatMessage->setDistributor(null);}}return $this;}/*** @return Collection<int, Notifications>*/public function getNotifications(): Collection{return $this->notifications;}public function addNotification(Notifications $notification): self{if (!$this->notifications->contains($notification)) {$this->notifications[] = $notification;$notification->setDistributors($this);}return $this;}public function removeNotification(Notifications $notification): self{if ($this->notifications->removeElement($notification)) {// set the owning side to null (unless already changed)if ($notification->getDistributors() === $this) {$notification->setDistributors(null);}}return $this;}/*** @return Collection<int, OrderStatus>*/public function getOrderStatuses(): Collection{return $this->orderStatuses;}public function addOrderStatus(OrderStatus $orderStatus): self{if (!$this->orderStatuses->contains($orderStatus)) {$this->orderStatuses[] = $orderStatus;$orderStatus->setDistributor($this);}return $this;}public function removeOrderStatus(OrderStatus $orderStatus): self{if ($this->orderStatuses->removeElement($orderStatus)) {// set the owning side to null (unless already changed)if ($orderStatus->getDistributor() === $this) {$orderStatus->setDistributor(null);}}return $this;}public function getAddressStreet(): ?string{return $this->addressStreet;}public function setAddressStreet(?string $addressStreet): self{$this->addressStreet = $addressStreet;return $this;}public function getAddressCity(): ?string{return $this->addressCity;}public function setAddressCity(?string $addressCity): self{$this->addressCity = $addressCity;return $this;}public function getAddressPostalCode(): ?string{return $this->addressPostalCode;}public function setAddressPostalCode(?string $addressPostalCode): self{$this->addressPostalCode = $addressPostalCode;return $this;}public function getAddressState(): ?string{return $this->addressState;}public function setAddressState(?string $addressState): self{$this->addressState = $addressState;return $this;}public function getAddressCountry(): ?Countries{return $this->addressCountry;}public function setAddressCountry(?Countries $addressCountry): self{$this->addressCountry = $addressCountry;return $this;}public function getShippingPolicy(): ?string{return $this->shippingPolicy;}public function setShippingPolicy(?string $shippingPolicy): self{$this->shippingPolicy = $shippingPolicy;return $this;}public function getIsoCode(): ?string{return $this->isoCode;}public function setIsoCode(?string $isoCode): self{$this->isoCode = $isoCode;return $this;}public function getIntlCode(): ?string{return $this->intlCode;}public function setIntlCode(?string $intlCode): self{$this->intlCode = $intlCode;return $this;}/*** @return Collection<int, DistributorUserPermissions>*/public function getDistributorUserPermissions(): Collection{return $this->distributorUserPermissions;}public function addDistributorUserPermission(DistributorUserPermissions $distributorUserPermission): self{if (!$this->distributorUserPermissions->contains($distributorUserPermission)) {$this->distributorUserPermissions[] = $distributorUserPermission;$distributorUserPermission->setDistributor($this);}return $this;}public function removeDistributorUserPermission(DistributorUserPermissions $distributorUserPermission): self{if ($this->distributorUserPermissions->removeElement($distributorUserPermission)) {// set the owning side to null (unless already changed)if ($distributorUserPermission->getDistributor() === $this) {$distributorUserPermission->setDistributor(null);}}return $this;}public function getApiDetails(): ?ApiDetails{return $this->api;}public function setApiDetails(ApiDetails $api): self{// set the owning side of the relation if necessaryif ($api->getDistributor() !== $this) {$api->setDistributor($this);}$this->api = $api;return $this;}/*** @return Collection<int, DistributorClinics>*/public function getDistributorClinics(): Collection{return $this->distributorClinics;}public function addDistributorClinic(DistributorClinics $distributorClinic): self{if (!$this->distributorClinics->contains($distributorClinic)) {$this->distributorClinics[] = $distributorClinic;$distributorClinic->setDistributor($this);}return $this;}public function removeDistributorClinic(DistributorClinics $distributorClinic): self{if ($this->distributorClinics->removeElement($distributorClinic)) {// set the owning side to null (unless already changed)if ($distributorClinic->getDistributor() === $this) {$distributorClinic->setDistributor(null);}}return $this;}public function getHashedEmail(): ?string{return $this->hashedEmail;}public function setHashedEmail(?string $hashedEmail): self{$this->hashedEmail = $hashedEmail;return $this;}public function getTracking(): ?Tracking{return $this->tracking;}public function setTracking(?Tracking $tracking): self{$this->tracking = $tracking;return $this;}public function getDomainName(): ?string{return $this->domainName;}public function setDomainName(?string $domainName): self{$this->domainName = $domainName;return $this;}public function getIsApproved(): ?int{return $this->isApproved;}public function setIsApproved(?int $isApproved): self{$this->isApproved = $isApproved;return $this;}public function getManagerFirstName(): ?string{return $this->managerFirstName;}public function setManagerFirstName(?string $managerFirstName): self{$this->managerFirstName = $managerFirstName;return $this;}public function getManagerLastName(): ?string{return $this->managerLastName;}public function setManagerLastName(?string $managerLastName): self{$this->managerLastName = $managerLastName;return $this;}public function getTradeLicense(): ?string{return $this->tradeLicense;}public function setTradeLicense(?string $tradeLicense): self{$this->tradeLicense = $tradeLicense;return $this;}public function getTradeLicenseNo(): ?string{return $this->tradeLicenseNo;}public function setTradeLicenseNo(?string $tradeLicenseNo): self{$this->tradeLicenseNo = $tradeLicenseNo;return $this;}public function getTradeLicenseExpDate(): ?\DateTimeInterface{return $this->tradeLicenseExpDate;}public function setTradeLicenseExpDate(?\DateTimeInterface $tradeLicenseExpDate): self{$this->tradeLicenseExpDate = $tradeLicenseExpDate;return $this;}public function getManagerIdNo(): ?string{return $this->managerIdNo;}public function setManagerIdNo(?string $managerIdNo): self{$this->managerIdNo = $managerIdNo;return $this;}public function getManagerIdExpDate(): ?\DateTimeInterface{return $this->managerIdExpDate;}public function setManagerIdExpDate(?\DateTimeInterface $managerIdExpDate): self{$this->managerIdExpDate = $managerIdExpDate;return $this;}/*** @return Collection<int, ControlledDrugFiles>*/public function getControlledDrugFiles(): Collection{return $this->controlledDrugFiles;}public function addControlledDrugFile(ControlledDrugFiles $controlledDrugFile): self{if (!$this->controlledDrugFiles->contains($controlledDrugFile)) {$this->controlledDrugFiles[] = $controlledDrugFile;$controlledDrugFile->setDistributor($this);}return $this;}public function removeControlledDrugFile(ControlledDrugFiles $controlledDrugFile): self{if ($this->controlledDrugFiles->removeElement($controlledDrugFile)) {// set the owning side to null (unless already changed)if ($controlledDrugFile->getDistributor() === $this) {$controlledDrugFile->setDistributor(null);}}return $this;}/*** @return Collection<int, CustomPriceLists>*/public function getCustomPriceLists(): Collection{return $this->customPriceLists;}public function addCustomPriceList(CustomPriceLists $customPriceList): static{if (!$this->customPriceLists->contains($customPriceList)) {$this->customPriceLists->add($customPriceList);$customPriceList->setDistributor($this);}return $this;}public function removeCustomPriceList(CustomPriceLists $customPriceList): static{if ($this->customPriceLists->removeElement($customPriceList)) {// set the owning side to null (unless already changed)if ($customPriceList->getDistributor() === $this) {$customPriceList->setDistributor(null);}}return $this;}public function getScraperAunthentication(): ?ScraperAunthentication{return $this->scraperAunthentication;}public function setScraperAunthentication(ScraperAunthentication $scraperAunthentication): static{// set the owning side of the relation if necessaryif ($scraperAunthentication->getDistributor() !== $this) {$scraperAunthentication->setDistributor($this);}$this->scraperAunthentication = $scraperAunthentication;return $this;}/*** @return Collection<int, ScraperUrls>*/public function getScraperUrls(): Collection{return $this->scraperUrls;}public function addScraperUrl(ScraperUrls $scraperUrl): static{if (!$this->scraperUrls->contains($scraperUrl)) {$this->scraperUrls->add($scraperUrl);$scraperUrl->setDistributor($this);}return $this;}public function removeScraperUrl(ScraperUrls $scraperUrl): static{if ($this->scraperUrls->removeElement($scraperUrl)) {// set the owning side to null (unless already changed)if ($scraperUrl->getDistributor() === $this) {$scraperUrl->setDistributor(null);}}return $this;}/*** @return Collection<int, ClinicDistributorContacts>*/public function getClinicDistributorContacts(): Collection{return $this->clinicDistributorContacts;}public function addClinicDistributorContact(ClinicDistributorContacts $clinicDistributorContact): static{if (!$this->clinicDistributorContacts->contains($clinicDistributorContact)) {$this->clinicDistributorContacts->add($clinicDistributorContact);$clinicDistributorContact->setDistributor($this);}return $this;}public function removeClinicDistributorContact(ClinicDistributorContacts $clinicDistributorContact): static{if ($this->clinicDistributorContacts->removeElement($clinicDistributorContact)) {// set the owning side to null (unless already changed)if ($clinicDistributorContact->getDistributor() === $this) {$clinicDistributorContact->setDistributor(null);}}return $this;}/*** @return Collection<int, ScraperLog>*/public function getScraperLogs(): Collection{return $this->scraperLogs;}public function addScraperLog(ScraperLog $scraperLog): static{if (!$this->scraperLogs->contains($scraperLog)) {$this->scraperLogs->add($scraperLog);$scraperLog->setDistributor($this);}return $this;}public function removeScraperLog(ScraperLog $scraperLog): static{if ($this->scraperLogs->removeElement($scraperLog)) {// set the owning side to null (unless already changed)if ($scraperLog->getDistributor() === $this) {$scraperLog->setDistributor(null);}}return $this;}/*** @return Collection<int, ScraperProducts>*/public function getScraperProducts(): Collection{return $this->scraperProducts;}public function addScraperProduct(ScraperProducts $scraperProduct): static{if (!$this->scraperProducts->contains($scraperProduct)) {$this->scraperProducts->add($scraperProduct);$scraperProduct->setDistributor($this);}return $this;}public function removeScraperProduct(ScraperProducts $scraperProduct): static{if ($this->scraperProducts->removeElement($scraperProduct)) {// set the owning side to null (unless already changed)if ($scraperProduct->getDistributor() === $this) {$scraperProduct->setDistributor(null);}}return $this;}/*** @return Collection<int, AiDistributorProducts>*/public function getAiDistributorProducts(): Collection{return $this->aiDistributorProducts;}public function addAiDistributorProduct(AiDistributorProducts $aiDistributorProduct): static{if (!$this->aiDistributorProducts->contains($aiDistributorProduct)) {$this->aiDistributorProducts->add($aiDistributorProduct);$aiDistributorProduct->setDistributor($this);}return $this;}public function removeAiDistributorProduct(AiDistributorProducts $aiDistributorProduct): static{if ($this->aiDistributorProducts->removeElement($aiDistributorProduct)) {// set the owning side to null (unless already changed)if ($aiDistributorProduct->getDistributor() === $this) {$aiDistributorProduct->setDistributor(null);}}return $this;}/*** @return Collection<int, AiListItems>*/public function getAiListItems(): Collection{return $this->aiListItems;}public function addAiListItem(AiListItems $aiListItem): static{if (!$this->aiListItems->contains($aiListItem)) {$this->aiListItems->add($aiListItem);$aiListItem->setDistributor($this);}return $this;}public function removeAiListItem(AiListItems $aiListItem): static{if ($this->aiListItems->removeElement($aiListItem)) {// set the owning side to null (unless already changed)if ($aiListItem->getDistributor() === $this) {$aiListItem->setDistributor(null);}}return $this;}/*** @return Collection<int, AiBasketItems>*/public function getAiBasketItems(): Collection{return $this->aiBasketItems;}public function addAiBasketItem(AiBasketItems $aiBasketItem): static{if (!$this->aiBasketItems->contains($aiBasketItem)) {$this->aiBasketItems->add($aiBasketItem);$aiBasketItem->setDistributor($this);}return $this;}public function removeAiBasketItem(AiBasketItems $aiBasketItem): static{if ($this->aiBasketItems->removeElement($aiBasketItem)) {// set the owning side to null (unless already changed)if ($aiBasketItem->getDistributor() === $this) {$aiBasketItem->setDistributor(null);}}return $this;}/*** @return Collection<int, AiOrderItems>*/public function getAiOrderItems(): Collection{return $this->aiOrderItems;}public function addAiOrderItem(AiOrderItems $aiOrderItem): static{if (!$this->aiOrderItems->contains($aiOrderItem)) {$this->aiOrderItems->add($aiOrderItem);$aiOrderItem->setDistributor($this);}return $this;}public function removeAiOrderItem(AiOrderItems $aiOrderItem): static{if ($this->aiOrderItems->removeElement($aiOrderItem)) {// set the owning side to null (unless already changed)if ($aiOrderItem->getDistributor() === $this) {$aiOrderItem->setDistributor(null);}}return $this;}/*** @return Collection<int, AiClinicProducts>*/public function getAiClinicProducts(): Collection{return $this->aiClinicProducts;}public function addAiCinicProduct(AiClinicProducts $aiCinicProduct): static{if (!$this->aiClinicProducts->contains($aiCinicProduct)) {$this->aiClinicProducts->add($aiCinicProduct);$aiCinicProduct->setDistributor($this);}return $this;}public function removeAiCinicProduct(AiClinicProducts $aiCinicProduct): static{if ($this->aiClinicProducts->removeElement($aiCinicProduct)) {// set the owning side to null (unless already changed)if ($aiCinicProduct->getDistributor() === $this) {$aiCinicProduct->setDistributor(null);}}return $this;}/*** @return Collection<int, AiCustomPriceLists>*/public function getAiCustomPriceLists(): Collection{return $this->aiCustomPriceLists;}public function addAiCustomPriceList(AiCustomPriceLists $aiCustomPriceList): static{if (!$this->aiCustomPriceLists->contains($aiCustomPriceList)) {$this->aiCustomPriceLists->add($aiCustomPriceList);$aiCustomPriceList->setDistributor($this);}return $this;}public function removeAiCustomPriceList(AiCustomPriceLists $aiCustomPriceList): static{if ($this->aiCustomPriceLists->removeElement($aiCustomPriceList)) {// set the owning side to null (unless already changed)if ($aiCustomPriceList->getDistributor() === $this) {$aiCustomPriceList->setDistributor(null);}}return $this;}/*** @return Collection<int, AiControlledDrugFiles>*/public function getAiControlledDrugFiles(): Collection{return $this->aiControlledDrugFiles;}public function addAiControlledDrugFile(AiControlledDrugFiles $aiControlledDrugFile): static{if (!$this->aiControlledDrugFiles->contains($aiControlledDrugFile)) {$this->aiControlledDrugFiles->add($aiControlledDrugFile);$aiControlledDrugFile->setDistributor($this);}return $this;}public function removeAiControlledDrugFile(AiControlledDrugFiles $aiControlledDrugFile): static{if ($this->aiControlledDrugFiles->removeElement($aiControlledDrugFile)) {// set the owning side to null (unless already changed)if ($aiControlledDrugFile->getDistributor() === $this) {$aiControlledDrugFile->setDistributor(null);}}return $this;}/*** @return Collection<int, AiOrderStatus>*/public function getAiOrderStatuses(): Collection{return $this->aiOrderStatuses;}public function addAiOrderStatus(AiOrderStatus $aiOrderStatus): static{if (!$this->aiOrderStatuses->contains($aiOrderStatus)) {$this->aiOrderStatuses->add($aiOrderStatus);$aiOrderStatus->setDistributor($this);}return $this;}public function removeAiOrderStatus(AiOrderStatus $aiOrderStatus): static{if ($this->aiOrderStatuses->removeElement($aiOrderStatus)) {// set the owning side to null (unless already changed)if ($aiOrderStatus->getDistributor() === $this) {$aiOrderStatus->setDistributor(null);}}return $this;}public function getHasScraper(): ?bool{return $this->hasScraper;}public function setHasScraper(bool $hasScraper): static{$this->hasScraper = $hasScraper;return $this;}}