src/Entity/CRM/ZoomConfig.php line 11

  1. <?php
  2. namespace App\Entity\CRM;
  3. use App\Repository\ZoomConfigRepository;
  4. use Doctrine\Common\Collections\ArrayCollection;
  5. use Doctrine\Common\Collections\Collection;
  6. use Doctrine\ORM\Mapping as ORM;
  7. #[ORM\Entity(repositoryClassZoomConfigRepository::class)]
  8. class ZoomConfig
  9. {
  10.     #[ORM\Id]
  11.     #[ORM\GeneratedValue]
  12.     #[ORM\Column]
  13.     private ?int $id null;
  14.     #[ORM\Column(length255)]
  15.     private ?string $accountId null;
  16.     #[ORM\Column(length255)]
  17.     private ?string $accountEmail null;
  18.     #[ORM\Column(length255)]
  19.     private ?string $clientId null;
  20.     #[ORM\Column(length255)]
  21.     private ?string $clientSecret null;
  22.     #[ORM\OneToMany(mappedBy'zoomConfig'targetEntityZoomMeeting::class)]
  23.     private Collection $zoomMeetings;
  24.     public  function __toString()
  25.     {
  26.         return $this->accountEmail;
  27.     }
  28.     public function __construct()
  29.     {
  30.         $this->zoomMeetings = new ArrayCollection();
  31.     }
  32.     public function getId(): ?int
  33.     {
  34.         return $this->id;
  35.     }
  36.     public function getAccountId(): ?string
  37.     {
  38.         return $this->accountId;
  39.     }
  40.     public function setAccountId(string $accountId): static
  41.     {
  42.         $this->accountId $accountId;
  43.         return $this;
  44.     }
  45.     public function getAccountEmail(): ?string
  46.     {
  47.         return $this->accountEmail;
  48.     }
  49.     public function setAccountEmail(string $accountEmail): static
  50.     {
  51.         $this->accountEmail $accountEmail;
  52.         return $this;
  53.     }
  54.     public function getClientId(): ?string
  55.     {
  56.         return $this->clientId;
  57.     }
  58.     public function setClientId(string $clientId): static
  59.     {
  60.         $this->clientId $clientId;
  61.         return $this;
  62.     }
  63.     public function getClientSecret(): ?string
  64.     {
  65.         return $this->clientSecret;
  66.     }
  67.     public function setClientSecret(string $clientSecret): static
  68.     {
  69.         $this->clientSecret $clientSecret;
  70.         return $this;
  71.     }
  72.     /**
  73.      * @return Collection<int, ZoomMeeting>
  74.      */
  75.     public function getZoomMeetings(): Collection
  76.     {
  77.         return $this->zoomMeetings;
  78.     }
  79.     public function addZoomMeeting(ZoomMeeting $zoomMeeting): static
  80.     {
  81.         if (!$this->zoomMeetings->contains($zoomMeeting)) {
  82.             $this->zoomMeetings->add($zoomMeeting);
  83.             $zoomMeeting->setZoomConfig($this);
  84.         }
  85.         return $this;
  86.     }
  87.     public function removeZoomMeeting(ZoomMeeting $zoomMeeting): static
  88.     {
  89.         if ($this->zoomMeetings->removeElement($zoomMeeting)) {
  90.             // set the owning side to null (unless already changed)
  91.             if ($zoomMeeting->getZoomConfig() === $this) {
  92.                 $zoomMeeting->setZoomConfig(null);
  93.             }
  94.         }
  95.         return $this;
  96.     }
  97. }