src/Entity/CRM/ZoomMeeting.php line 13

  1. <?php
  2. namespace App\Entity\CRM;
  3. use App\Repository\ZoomMeetingRepository;
  4. use DateTime;
  5. use Doctrine\Common\Collections\ArrayCollection;
  6. use Doctrine\Common\Collections\Collection;
  7. use Doctrine\DBAL\Types\Types;
  8. use Doctrine\ORM\Mapping as ORM;
  9. #[ORM\Entity(repositoryClassZoomMeetingRepository::class)]
  10. class ZoomMeeting
  11. {
  12.     #[ORM\Id]
  13.     #[ORM\GeneratedValue]
  14.     #[ORM\Column]
  15.     private ?int $id null;
  16.     #[ORM\Column(length255)]
  17.     private ?string $name null;
  18.     #[ORM\Column(typeTypes::DATETIME_MUTABLE)]
  19.     private ?\DateTimeInterface $addedDate null;
  20.     #[ORM\Column(typeTypes::DATETIME_MUTABLE)]
  21.     private ?\DateTimeInterface $zoomTime null;
  22.     #[ORM\Column]
  23.     private ?bool $isActive null;
  24.     #[ORM\OneToMany(mappedBy'zoomMeeting'targetEntityZoomList::class)]
  25.     private Collection $zoomLists;
  26.     #[ORM\Column(nullabletrue)]
  27.     private ?string $zoomId null;
  28.     #[ORM\Column]
  29.     private ?int $zoomType null;
  30.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  31.     private ?string $startUrl null;
  32.     #[ORM\Column(length255nullabletrue)]
  33.     private ?string $joinUrl null;
  34.     #[ORM\Column]
  35.     private ?int $duration null;
  36.     #[ORM\Column(length255nullabletrue)]
  37.     private ?string $passcode null;
  38.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  39.     private ?string $agenda null;
  40.     #[ORM\ManyToMany(targetEntityBranch::class, inversedBy'zoomMeetings')]
  41.     private Collection $branches;
  42.     #[ORM\Column(nullabletrue)]
  43.     private ?int $meetingType null;
  44.     #[ORM\ManyToOne(inversedBy'zoomMeetings')]
  45.     private ?ZoomConfig $zoomConfig null;
  46.     public function __construct()
  47.     {
  48.         $this->zoomLists = new ArrayCollection();
  49.         $this->addedDate = new DateTime();
  50.         $this->branches = new ArrayCollection();
  51.     }
  52.     public function __toString(): string
  53.     {
  54.         return $this->zoomTime->format('d-m-Y H:i:s').'-'.$this->name;
  55.     }
  56.     public function getId(): ?int
  57.     {
  58.         return $this->id;
  59.     }
  60.     public function getName(): ?string
  61.     {
  62.         return $this->name;
  63.     }
  64.     public function setName(string $name): static
  65.     {
  66.         $this->name $name;
  67.         return $this;
  68.     }
  69.     public function getAddedDate(): ?\DateTimeInterface
  70.     {
  71.         return $this->addedDate;
  72.     }
  73.     public function setAddedDate(\DateTimeInterface $addedDate): static
  74.     {
  75.         $this->addedDate $addedDate;
  76.         return $this;
  77.     }
  78.     public function getZoomTime(): ?\DateTimeInterface
  79.     {
  80.         return $this->zoomTime;
  81.     }
  82.     public function setZoomTime(\DateTimeInterface $zoomTime): static
  83.     {
  84.         $this->zoomTime $zoomTime;
  85.         return $this;
  86.     }
  87.     public function isIsActive(): ?bool
  88.     {
  89.         return $this->isActive;
  90.     }
  91.     public function setIsActive(bool $isActive): static
  92.     {
  93.         $this->isActive $isActive;
  94.         return $this;
  95.     }
  96.     /**
  97.      * @return Collection<int, ZoomList>
  98.      */
  99.     public function getZoomLists(): Collection
  100.     {
  101.         return $this->zoomLists;
  102.     }
  103.     public function addZoomList(ZoomList $zoomList): static
  104.     {
  105.         if (!$this->zoomLists->contains($zoomList)) {
  106.             $this->zoomLists->add($zoomList);
  107.             $zoomList->setZoomMeeting($this);
  108.         }
  109.         return $this;
  110.     }
  111.     public function removeZoomList(ZoomList $zoomList): static
  112.     {
  113.         if ($this->zoomLists->removeElement($zoomList)) {
  114.             // set the owning side to null (unless already changed)
  115.             if ($zoomList->getZoomMeeting() === $this) {
  116.                 $zoomList->setZoomMeeting(null);
  117.             }
  118.         }
  119.         return $this;
  120.     }
  121.     public function getZoomId(): ?int
  122.     {
  123.         return $this->zoomId;
  124.     }
  125.     public function setZoomId(?int $zoomId): static
  126.     {
  127.         $this->zoomId $zoomId;
  128.         return $this;
  129.     }
  130.     public function getZoomType(): ?int
  131.     {
  132.         return $this->zoomType;
  133.     }
  134.     public function setZoomType(int $zoomType): static
  135.     {
  136.         $this->zoomType $zoomType;
  137.         return $this;
  138.     }
  139.     public function getStartUrl(): ?string
  140.     {
  141.         return $this->startUrl;
  142.     }
  143.     public function setStartUrl(?string $startUrl): static
  144.     {
  145.         $this->startUrl $startUrl;
  146.         return $this;
  147.     }
  148.     public function getJoinUrl(): ?string
  149.     {
  150.         return $this->joinUrl;
  151.     }
  152.     public function setJoinUrl(?string $joinUrl): static
  153.     {
  154.         $this->joinUrl $joinUrl;
  155.         return $this;
  156.     }
  157.     public function getDuration(): ?int
  158.     {
  159.         return $this->duration;
  160.     }
  161.     public function setDuration(int $duration): static
  162.     {
  163.         $this->duration $duration;
  164.         return $this;
  165.     }
  166.     public function getPasscode(): ?string
  167.     {
  168.         return $this->passcode;
  169.     }
  170.     public function setPasscode(?string $passcode): static
  171.     {
  172.         $this->passcode $passcode;
  173.         return $this;
  174.     }
  175.     public function getAgenda(): ?string
  176.     {
  177.         return $this->agenda;
  178.     }
  179.     public function setAgenda(?string $agenda): static
  180.     {
  181.         $this->agenda $agenda;
  182.         return $this;
  183.     }
  184.     /**
  185.      * @return Collection<int, Branch>
  186.      */
  187.     public function getBranches(): Collection
  188.     {
  189.         return $this->branches;
  190.     }
  191.     public function addBranch(Branch $branch): static
  192.     {
  193.         if (!$this->branches->contains($branch)) {
  194.             $this->branches->add($branch);
  195.         }
  196.         return $this;
  197.     }
  198.     public function removeBranch(Branch $branch): static
  199.     {
  200.         $this->branches->removeElement($branch);
  201.         return $this;
  202.     }
  203.     public function getMeetingType(): ?int
  204.     {
  205.         return $this->meetingType;
  206.     }
  207.     public function setMeetingType(?int $meetingType): static
  208.     {
  209.         $this->meetingType $meetingType;
  210.         return $this;
  211.     }
  212.     public function getZoomConfig(): ?ZoomConfig
  213.     {
  214.         return $this->zoomConfig;
  215.     }
  216.     public function setZoomConfig(?ZoomConfig $zoomConfig): static
  217.     {
  218.         $this->zoomConfig $zoomConfig;
  219.         return $this;
  220.     }
  221. }