src/Entity/Clinics.php line 11
<?php
namespace App\Entity;
use App\Repository\ClinicsRepository;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: ClinicsRepository::class)]
class Clinics
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column(type: 'integer')]
private $id;
#[ORM\Column(type: 'string', length: 255)]
private $clinicName;
#[ORM\Column(type: 'string', length: 255)]
private $telephone;
#[ORM\Column(type: 'string', length: 255)]
private $email;
#[ORM\Column(type: 'datetime')]
private $modified;
#[ORM\Column(type: 'datetime')]
private $created;
#[ORM\OneToMany(targetEntity: Addresses::class, mappedBy: 'clinic')]
private $addresses;
#[ORM\OneToMany(targetEntity: Baskets::class, mappedBy: 'clinic')]
private $baskets;
#[ORM\OneToMany(targetEntity: ClinicCommunicationMethods::class, mappedBy: 'clinic')]
private $clinicCommunicationMethods;
#[ORM\OneToMany(targetEntity: ClinicUsers::class, mappedBy: 'clinic', cascade: ['persist'])]
private $clinicUsers;
#[ORM\OneToMany(targetEntity: DistributorClinicPrices::class, mappedBy: 'clinic')]
private $distributorClinicPrices;
#[ORM\OneToMany(targetEntity: Orders::class, mappedBy: 'clinic')]
private $orders;
#[ORM\OneToMany(targetEntity: EventLog::class, mappedBy: 'clinic')]
private $eventLogs;
#[ORM\OneToMany(targetEntity: Lists::class, mappedBy: 'clinic')]
private $lists;
#[ORM\OneToMany(targetEntity: ProductNotes::class, mappedBy: 'clinic')]
private $productNotes;
#[ORM\OneToMany(targetEntity: AvailabilityTracker::class, mappedBy: 'clinic')]
private $availabilityTrackers;
#[ORM\OneToMany(targetEntity: ClinicProducts::class, mappedBy: 'clinic')]
private $clinicProducts;
#[ORM\OneToMany(targetEntity: ProductReviewComments::class, mappedBy: 'clinic')]
private $productReviewComments;
#[ORM\OneToMany(targetEntity: Notifications::class, mappedBy: 'clinic')]
private $notifications;
#[ORM\OneToMany(targetEntity: ProductFavourites::class, mappedBy: 'clinic')]
private $productFavourites;
#[ORM\OneToMany(targetEntity: ChatParticipants::class, mappedBy: 'clinic')]
private $chatParticipants;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private $isoCode;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private $intlCode;
#[ORM\OneToMany(targetEntity: ClinicUserPermissions::class, mappedBy: 'clinic')]
private $clinicUserPermissions;
#[ORM\OneToMany(targetEntity: DistributorClinics::class, mappedBy: 'clinic')]
private $distributorClinics;
#[ORM\ManyToOne(targetEntity: Countries::class, inversedBy: 'clinics')]
private $country;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private $hashedEmail;
#[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: RetailUsers::class, mappedBy: 'clinic')]
private $retailUsers;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private $logo;
#[ORM\OneToMany(targetEntity: ClinicRetailUsers::class, mappedBy: 'clinic')]
private $clinicRetailUsers;
#[ORM\OneToMany(targetEntity: ProductRetail::class, mappedBy: 'clinic')]
private $productRetails;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private $PoNumberPrefix;
#[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: 'text', nullable: true)]
private $shippingPolicy;
/**
* @var Collection<int, CustomPriceLists>
*/
#[ORM\OneToMany(mappedBy: 'clinic', targetEntity: CustomPriceLists::class)]
private Collection $customPriceLists;
/**
* @var Collection<int, ClinicDistributorContacts>
*/
#[ORM\OneToMany(mappedBy: 'clinic', targetEntity: ClinicDistributorContacts::class)]
private Collection $clinicDistributorContacts;
/**
* @var Collection<int, SearchLog>
*/
#[ORM\OneToMany(mappedBy: 'clinic', targetEntity: SearchLog::class)]
private Collection $searchLogs;
/**
* @var Collection<int, AiProductFavourites>
*/
#[ORM\OneToMany(mappedBy: 'clinic', targetEntity: AiProductFavourites::class)]
private Collection $aiProductFavourites;
/**
* @var Collection<int, AiProductNotes>
*/
#[ORM\OneToMany(mappedBy: 'clinic', targetEntity: AiProductNotes::class)]
private Collection $aiProductNotes;
/**
* @var Collection<int, AiProductReviewComments>
*/
#[ORM\OneToMany(mappedBy: 'clinic', targetEntity: AiProductReviewComments::class)]
private Collection $aiProductReviewComments;
/**
* @var Collection<int, AiLists>
*/
#[ORM\OneToMany(mappedBy: 'clinic', targetEntity: AiLists::class)]
private Collection $aiLists;
/**
* @var Collection<int, AiProductRetail>
*/
#[ORM\OneToMany(mappedBy: 'clinic', targetEntity: AiProductRetail::class)]
private Collection $aiProductRetails;
/**
* @var Collection<int, AiAddresses>
*/
#[ORM\OneToMany(mappedBy: 'clinic', targetEntity: AiAddresses::class)]
private Collection $aiAddresses;
/**
* @var Collection<int, AiBaskets>
*/
#[ORM\OneToMany(mappedBy: 'clinic', targetEntity: AiBaskets::class)]
private Collection $aiBaskets;
/**
* @var Collection<int, AiOrders>
*/
#[ORM\OneToMany(mappedBy: 'clinic', targetEntity: AiOrders::class)]
private Collection $aiOrders;
/**
* @var Collection<int, AiClinicProducts>
*/
#[ORM\OneToMany(mappedBy: 'clinic', targetEntity: AiClinicProducts::class)]
private Collection $aiClinicProducts;
/**
* @var Collection<int, AiCustomPriceLists>
*/
#[ORM\OneToMany(mappedBy: 'clinic', targetEntity: AiCustomPriceLists::class)]
private Collection $aiCustomPriceLists;
public function __construct()
{
$date = new \DateTime("now", new \DateTimeZone('Asia/Dubai'));
$this->setModified($date);
if ($this->getCreated() == null)
{
$this->setCreated($date);
}
$this->addresses = new ArrayCollection();
$this->baskets = new ArrayCollection();
$this->distributors = new ArrayCollection();
$this->clinicCommunicationMethods = new ArrayCollection();
$this->clinicUsers = new ArrayCollection();
$this->distributorClinicPrices = new ArrayCollection();
$this->orders = new ArrayCollection();
$this->eventLogs = new ArrayCollection();
$this->lists = new ArrayCollection();
$this->productNotes = new ArrayCollection();
$this->availabilityTrackers = new ArrayCollection();
$this->clinicProducts = new ArrayCollection();
$this->productReviewComments = new ArrayCollection();
$this->notifications = new ArrayCollection();
$this->productFavourites = new ArrayCollection();
$this->chatParticipants = new ArrayCollection();
$this->clinicUserPermissions = new ArrayCollection();
$this->distributorClinics = new ArrayCollection();
$this->retailUsers = new ArrayCollection();
$this->clinicRetailUsers = new ArrayCollection();
$this->productRetails = new ArrayCollection();
$this->customPriceLists = new ArrayCollection();
$this->clinicDistributorContacts = new ArrayCollection();
$this->searchLogs = new ArrayCollection();
$this->aiProductFavourites = new ArrayCollection();
$this->aiProductNotes = new ArrayCollection();
$this->aiProductReviewComments = new ArrayCollection();
$this->aiLists = new ArrayCollection();
$this->aiProductRetails = new ArrayCollection();
$this->aiAddresses = new ArrayCollection();
$this->aiBaskets = new ArrayCollection();
$this->aiOrders = new ArrayCollection();
$this->aiClinicProducts = new ArrayCollection();
$this->aiCustomPriceLists = new ArrayCollection();
}
public function getId(): ?int
{
return $this->id;
}
public function getClinicName(): ?string
{
return $this->clinicName;
}
public function setClinicName(string $clinicName): self
{
$this->clinicName = $clinicName;
return $this;
}
public function getTelephone(): ?string
{
return $this->telephone;
}
public function setTelephone(string $telephone): self
{
$this->telephone = $telephone;
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|Addresses[]
*/
public function getAddresses(): Collection
{
return $this->addresses;
}
public function addAddress(Addresses $address): self
{
if (!$this->addresses->contains($address)) {
$this->addresses[] = $address;
$address->setClinic($this);
}
return $this;
}
public function removeAddress(Addresses $address): self
{
if ($this->addresses->removeElement($address)) {
// set the owning side to null (unless already changed)
if ($address->getClinic() === $this) {
$address->setClinic(null);
}
}
return $this;
}
/**
* @return Collection|Baskets[]
*/
public function getBaskets(): Collection
{
return $this->baskets;
}
public function addBasket(Baskets $basket): self
{
if (!$this->baskets->contains($basket)) {
$this->baskets[] = $basket;
$basket->setClinic($this);
}
return $this;
}
public function removeBasket(Baskets $basket): self
{
if ($this->baskets->removeElement($basket)) {
// set the owning side to null (unless already changed)
if ($basket->getClinic() === $this) {
$basket->setClinic(null);
}
}
return $this;
}
/**
* @return Collection|ClinicCommunicationMethods[]
*/
public function getClinicCommunicationMethods(): Collection
{
return $this->clinicCommunicationMethods;
}
public function addClinicCommunicationMethod(ClinicCommunicationMethods $clinicCommunicationMethod): self
{
if (!$this->clinicCommunicationMethods->contains($clinicCommunicationMethod)) {
$this->clinicCommunicationMethods[] = $clinicCommunicationMethod;
$clinicCommunicationMethod->setClinic($this);
}
return $this;
}
public function removeClinicCommunicationMethod(ClinicCommunicationMethods $clinicCommunicationMethod): self
{
if ($this->clinicCommunicationMethods->removeElement($clinicCommunicationMethod)) {
// set the owning side to null (unless already changed)
if ($clinicCommunicationMethod->getClinic() === $this) {
$clinicCommunicationMethod->setClinic(null);
}
}
return $this;
}
/**
* @return Collection|ClinicUsers[]
*/
public function getClinicUsers(): Collection
{
return $this->clinicUsers;
}
public function addClinicUser(ClinicUsers $clinicUser): self
{
if (!$this->clinicUsers->contains($clinicUser)) {
$this->clinicUsers[] = $clinicUser;
$clinicUser->setClinic($this);
}
return $this;
}
public function removeClinicUser(ClinicUsers $clinicUser): self
{
if ($this->clinicUsers->removeElement($clinicUser)) {
// set the owning side to null (unless already changed)
if ($clinicUser->getClinic() === $this) {
$clinicUser->setClinic(null);
}
}
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->setClinic($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->getClinic() === $this) {
$distributorClinicPrice->setClinic(null);
}
}
return $this;
}
/**
* @return Collection|Orders[]
*/
public function getOrders(): Collection
{
return $this->orders;
}
public function addOrder(Orders $order): self
{
if (!$this->orders->contains($order)) {
$this->orders[] = $order;
$order->setClinic($this);
}
return $this;
}
public function removeOrder(Orders $order): self
{
if ($this->orders->removeElement($order)) {
// set the owning side to null (unless already changed)
if ($order->getClinic() === $this) {
$order->setClinic(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->setClinic($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->getClinic() === $this) {
$eventLog->setClinic(null);
}
}
return $this;
}
/**
* @return Collection|Lists[]
*/
public function getLists(): Collection
{
return $this->lists;
}
public function addList(Lists $list): self
{
if (!$this->lists->contains($list)) {
$this->lists[] = $list;
$list->setClinic($this);
}
return $this;
}
public function removeList(Lists $list): self
{
if ($this->lists->removeElement($list)) {
// set the owning side to null (unless already changed)
if ($list->getClinic() === $this) {
$list->setClinic(null);
}
}
return $this;
}
/**
* @return Collection|ProductNotes[]
*/
public function getProductNotes(): Collection
{
return $this->productNotes;
}
public function addProductNote(ProductNotes $productNote): self
{
if (!$this->productNotes->contains($productNote)) {
$this->productNotes[] = $productNote;
$productNote->setClinic($this);
}
return $this;
}
public function removeProductNote(ProductNotes $productNote): self
{
if ($this->productNotes->removeElement($productNote)) {
// set the owning side to null (unless already changed)
if ($productNote->getClinic() === $this) {
$productNote->setClinic(null);
}
}
return $this;
}
/**
* @return Collection|AvailabilityTracker[]
*/
public function getAvailabilityTrackers(): Collection
{
return $this->availabilityTrackers;
}
public function addAvailabilityTracker(AvailabilityTracker $availabilityTracker): self
{
if (!$this->availabilityTrackers->contains($availabilityTracker)) {
$this->availabilityTrackers[] = $availabilityTracker;
$availabilityTracker->setClinic($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->getClinic() === $this) {
$availabilityTracker->setClinic(null);
}
}
return $this;
}
public function getEmail(): ?string
{
return $this->email;
}
public function setEmail(string $email): self
{
$this->email = $email;
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->setClinic($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->getClinic() === $this) {
$clinicProduct->setClinic(null);
}
}
return $this;
}
/**
* @return Collection<int, ProductReviewComments>
*/
public function getProductReviewComments(): Collection
{
return $this->productReviewComments;
}
public function addProductReviewComment(ProductReviewComments $productReviewComment): self
{
if (!$this->productReviewComments->contains($productReviewComment)) {
$this->productReviewComments[] = $productReviewComment;
$productReviewComment->setClinic($this);
}
return $this;
}
public function removeProductReviewComment(ProductReviewComments $productReviewComment): self
{
if ($this->productReviewComments->removeElement($productReviewComment)) {
// set the owning side to null (unless already changed)
if ($productReviewComment->getClinic() === $this) {
$productReviewComment->setClinic(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->setClinic($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->getClinic() === $this) {
$notification->setClinic(null);
}
}
return $this;
}
/**
* @return Collection<int, ProductFavourites>
*/
public function getProductFavourites(): Collection
{
return $this->productFavourites;
}
public function addProductFavourite(ProductFavourites $productFavourite): self
{
if (!$this->productFavourites->contains($productFavourite)) {
$this->productFavourites[] = $productFavourite;
$productFavourite->setClinic($this);
}
return $this;
}
public function removeProductFavourite(ProductFavourites $productFavourite): self
{
if ($this->productFavourites->removeElement($productFavourite)) {
// set the owning side to null (unless already changed)
if ($productFavourite->getClinic() === $this) {
$productFavourite->setClinic(null);
}
}
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->setClinic($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->getClinic() === $this) {
$chatParticipant->setClinic(null);
}
}
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, ClinicUserPermissions>
*/
public function getClinicUserPermissions(): Collection
{
return $this->clinicUserPermissions;
}
public function addClinicUserPermission(ClinicUserPermissions $clinicUserPermission): self
{
if (!$this->clinicUserPermissions->contains($clinicUserPermission)) {
$this->clinicUserPermissions[] = $clinicUserPermission;
$clinicUserPermission->setClinic($this);
}
return $this;
}
public function removeClinicUserPermission(ClinicUserPermissions $clinicUserPermission): self
{
if ($this->clinicUserPermissions->removeElement($clinicUserPermission)) {
// set the owning side to null (unless already changed)
if ($clinicUserPermission->getClinic() === $this) {
$clinicUserPermission->setClinic(null);
}
}
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->setClinic($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->getClinic() === $this) {
$distributorClinic->setClinic(null);
}
}
return $this;
}
public function getCountry(): ?Countries
{
return $this->country;
}
public function setCountry(?Countries $country): self
{
$this->country = $country;
return $this;
}
public function getHashedEmail(): ?string
{
return $this->hashedEmail;
}
public function setHashedEmail(?string $hashedEmail): self
{
$this->hashedEmail = $hashedEmail;
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, RetailUsers>
*/
public function getRetailUsers(): Collection
{
return $this->retailUsers;
}
public function addRetailUser(RetailUsers $retailUser): self
{
if (!$this->retailUsers->contains($retailUser)) {
$this->retailUsers[] = $retailUser;
$retailUser->setClinic($this);
}
return $this;
}
public function removeRetailUser(RetailUsers $retailUser): self
{
if ($this->retailUsers->removeElement($retailUser)) {
// set the owning side to null (unless already changed)
if ($retailUser->getClinic() === $this) {
$retailUser->setClinic(null);
}
}
return $this;
}
public function getLogo(): ?string
{
return $this->logo;
}
public function setLogo(?string $logo): self
{
$this->logo = $logo;
return $this;
}
/**
* @return Collection<int, ClinicRetailUsers>
*/
public function getClinicRetailUsers(): Collection
{
return $this->clinicRetailUsers;
}
public function addClinicRetailUser(ClinicRetailUsers $clinicRetailUser): self
{
if (!$this->clinicRetailUsers->contains($clinicRetailUser)) {
$this->clinicRetailUsers[] = $clinicRetailUser;
$clinicRetailUser->setClinic($this);
}
return $this;
}
public function removeClinicRetailUser(ClinicRetailUsers $clinicRetailUser): self
{
if ($this->clinicRetailUsers->removeElement($clinicRetailUser)) {
// set the owning side to null (unless already changed)
if ($clinicRetailUser->getClinic() === $this) {
$clinicRetailUser->setClinic(null);
}
}
return $this;
}
/**
* @return Collection<int, ProductRetail>
*/
public function getProductRetails(): Collection
{
return $this->productRetails;
}
public function addProductRetail(ProductRetail $productRetail): self
{
if (!$this->productRetails->contains($productRetail)) {
$this->productRetails[] = $productRetail;
$productRetail->setClinic($this);
}
return $this;
}
public function removeProductRetail(ProductRetail $productRetail): self
{
if ($this->productRetails->removeElement($productRetail)) {
// set the owning side to null (unless already changed)
if ($productRetail->getClinic() === $this) {
$productRetail->setClinic(null);
}
}
return $this;
}
public function getPoNumberPrefix(): ?string
{
return $this->PoNumberPrefix;
}
public function setPoNumberPrefix(?string $PoNumberPrefix): self
{
$this->PoNumberPrefix = $PoNumberPrefix;
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 getShippingPolicy(): ?string
{
return $this->shippingPolicy;
}
public function setShippingPolicy(?string $shippingPolicy): self
{
$this->shippingPolicy = $shippingPolicy;
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->setClinic($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->getClinic() === $this) {
$customPriceList->setClinic(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->setClinic($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->getClinic() === $this) {
$clinicDistributorContact->setClinic(null);
}
}
return $this;
}
/**
* @return Collection<int, SearchLog>
*/
public function getSearchLogs(): Collection
{
return $this->searchLogs;
}
public function addSearchLog(SearchLog $searchLog): static
{
if (!$this->searchLogs->contains($searchLog)) {
$this->searchLogs->add($searchLog);
$searchLog->setClinic($this);
}
return $this;
}
public function removeSearchLog(SearchLog $searchLog): static
{
if ($this->searchLogs->removeElement($searchLog)) {
// set the owning side to null (unless already changed)
if ($searchLog->getClinic() === $this) {
$searchLog->setClinic(null);
}
}
return $this;
}
/**
* @return Collection<int, AiProductFavourites>
*/
public function getAiProductFavourites(): Collection
{
return $this->aiProductFavourites;
}
public function addAiProductFavourite(AiProductFavourites $aiProductFavourite): static
{
if (!$this->aiProductFavourites->contains($aiProductFavourite)) {
$this->aiProductFavourites->add($aiProductFavourite);
$aiProductFavourite->setClinic($this);
}
return $this;
}
public function removeAiProductFavourite(AiProductFavourites $aiProductFavourite): static
{
if ($this->aiProductFavourites->removeElement($aiProductFavourite)) {
// set the owning side to null (unless already changed)
if ($aiProductFavourite->getClinic() === $this) {
$aiProductFavourite->setClinic(null);
}
}
return $this;
}
/**
* @return Collection<int, AiProductNotes>
*/
public function getAiProductNotes(): Collection
{
return $this->aiProductNotes;
}
public function addAiProductNote(AiProductNotes $aiProductNote): static
{
if (!$this->aiProductNotes->contains($aiProductNote)) {
$this->aiProductNotes->add($aiProductNote);
$aiProductNote->setClinic($this);
}
return $this;
}
public function removeAiProductNote(AiProductNotes $aiProductNote): static
{
if ($this->aiProductNotes->removeElement($aiProductNote)) {
// set the owning side to null (unless already changed)
if ($aiProductNote->getClinic() === $this) {
$aiProductNote->setClinic(null);
}
}
return $this;
}
/**
* @return Collection<int, AiProductReviewComments>
*/
public function getAiProductReviewComments(): Collection
{
return $this->aiProductReviewComments;
}
public function addAiProductReviewComment(AiProductReviewComments $aiProductReviewComment): static
{
if (!$this->aiProductReviewComments->contains($aiProductReviewComment)) {
$this->aiProductReviewComments->add($aiProductReviewComment);
$aiProductReviewComment->setClinic($this);
}
return $this;
}
public function removeAiProductReviewComment(AiProductReviewComments $aiProductReviewComment): static
{
if ($this->aiProductReviewComments->removeElement($aiProductReviewComment)) {
// set the owning side to null (unless already changed)
if ($aiProductReviewComment->getClinic() === $this) {
$aiProductReviewComment->setClinic(null);
}
}
return $this;
}
/**
* @return Collection<int, AiLists>
*/
public function getAiLists(): Collection
{
return $this->aiLists;
}
public function addAiList(AiLists $aiList): static
{
if (!$this->aiLists->contains($aiList)) {
$this->aiLists->add($aiList);
$aiList->setClinic($this);
}
return $this;
}
public function removeAiList(AiLists $aiList): static
{
if ($this->aiLists->removeElement($aiList)) {
// set the owning side to null (unless already changed)
if ($aiList->getClinic() === $this) {
$aiList->setClinic(null);
}
}
return $this;
}
/**
* @return Collection<int, AiProductRetail>
*/
public function getAiProductRetails(): Collection
{
return $this->aiProductRetails;
}
public function addAiProductRetail(AiProductRetail $aiProductRetail): static
{
if (!$this->aiProductRetails->contains($aiProductRetail)) {
$this->aiProductRetails->add($aiProductRetail);
$aiProductRetail->setClinic($this);
}
return $this;
}
public function removeAiProductRetail(AiProductRetail $aiProductRetail): static
{
if ($this->aiProductRetails->removeElement($aiProductRetail)) {
// set the owning side to null (unless already changed)
if ($aiProductRetail->getClinic() === $this) {
$aiProductRetail->setClinic(null);
}
}
return $this;
}
/**
* @return Collection<int, AiAddresses>
*/
public function getAiAddresses(): Collection
{
return $this->aiAddresses;
}
public function addAiAddress(AiAddresses $aiAddress): static
{
if (!$this->aiAddresses->contains($aiAddress)) {
$this->aiAddresses->add($aiAddress);
$aiAddress->setClinic($this);
}
return $this;
}
public function removeAiAddress(AiAddresses $aiAddress): static
{
if ($this->aiAddresses->removeElement($aiAddress)) {
// set the owning side to null (unless already changed)
if ($aiAddress->getClinic() === $this) {
$aiAddress->setClinic(null);
}
}
return $this;
}
/**
* @return Collection<int, AiBaskets>
*/
public function getAiBaskets(): Collection
{
return $this->aiBaskets;
}
public function addAiBasket(AiBaskets $aiBasket): static
{
if (!$this->aiBaskets->contains($aiBasket)) {
$this->aiBaskets->add($aiBasket);
$aiBasket->setClinic($this);
}
return $this;
}
public function removeAiBasket(AiBaskets $aiBasket): static
{
if ($this->aiBaskets->removeElement($aiBasket)) {
// set the owning side to null (unless already changed)
if ($aiBasket->getClinic() === $this) {
$aiBasket->setClinic(null);
}
}
return $this;
}
/**
* @return Collection<int, AiOrders>
*/
public function getAiOrders(): Collection
{
return $this->aiOrders;
}
public function addAiOrder(AiOrders $aiOrder): static
{
if (!$this->aiOrders->contains($aiOrder)) {
$this->aiOrders->add($aiOrder);
$aiOrder->setClinic($this);
}
return $this;
}
public function removeAiOrder(AiOrders $aiOrder): static
{
if ($this->aiOrders->removeElement($aiOrder)) {
// set the owning side to null (unless already changed)
if ($aiOrder->getClinic() === $this) {
$aiOrder->setClinic(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->setClinic($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->getClinic() === $this) {
$aiCinicProduct->setClinic(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->setClinic($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->getClinic() === $this) {
$aiCustomPriceList->setClinic(null);
}
}
return $this;
}
}