src/Entity/CRM/ZoomMeeting.php line 13
<?phpnamespace App\Entity\CRM;use App\Repository\ZoomMeetingRepository;use DateTime;use Doctrine\Common\Collections\ArrayCollection;use Doctrine\Common\Collections\Collection;use Doctrine\DBAL\Types\Types;use Doctrine\ORM\Mapping as ORM;#[ORM\Entity(repositoryClass: ZoomMeetingRepository::class)]class ZoomMeeting{#[ORM\Id]#[ORM\GeneratedValue]#[ORM\Column]private ?int $id = null;#[ORM\Column(length: 255)]private ?string $name = null;#[ORM\Column(type: Types::DATETIME_MUTABLE)]private ?\DateTimeInterface $addedDate = null;#[ORM\Column(type: Types::DATETIME_MUTABLE)]private ?\DateTimeInterface $zoomTime = null;#[ORM\Column]private ?bool $isActive = null;#[ORM\OneToMany(mappedBy: 'zoomMeeting', targetEntity: ZoomList::class)]private Collection $zoomLists;#[ORM\Column(nullable: true)]private ?string $zoomId = null;#[ORM\Column]private ?int $zoomType = null;#[ORM\Column(type: Types::TEXT, nullable: true)]private ?string $startUrl = null;#[ORM\Column(length: 255, nullable: true)]private ?string $joinUrl = null;#[ORM\Column]private ?int $duration = null;#[ORM\Column(length: 255, nullable: true)]private ?string $passcode = null;#[ORM\Column(type: Types::TEXT, nullable: true)]private ?string $agenda = null;#[ORM\ManyToMany(targetEntity: Branch::class, inversedBy: 'zoomMeetings')]private Collection $branches;#[ORM\Column(nullable: true)]private ?int $meetingType = null;#[ORM\ManyToOne(inversedBy: 'zoomMeetings')]private ?ZoomConfig $zoomConfig = null;public function __construct(){$this->zoomLists = new ArrayCollection();$this->addedDate = new DateTime();$this->branches = new ArrayCollection();}public function __toString(): string{return $this->zoomTime->format('d-m-Y H:i:s').'-'.$this->name;}public function getId(): ?int{return $this->id;}public function getName(): ?string{return $this->name;}public function setName(string $name): static{$this->name = $name;return $this;}public function getAddedDate(): ?\DateTimeInterface{return $this->addedDate;}public function setAddedDate(\DateTimeInterface $addedDate): static{$this->addedDate = $addedDate;return $this;}public function getZoomTime(): ?\DateTimeInterface{return $this->zoomTime;}public function setZoomTime(\DateTimeInterface $zoomTime): static{$this->zoomTime = $zoomTime;return $this;}public function isIsActive(): ?bool{return $this->isActive;}public function setIsActive(bool $isActive): static{$this->isActive = $isActive;return $this;}/*** @return Collection<int, ZoomList>*/public function getZoomLists(): Collection{return $this->zoomLists;}public function addZoomList(ZoomList $zoomList): static{if (!$this->zoomLists->contains($zoomList)) {$this->zoomLists->add($zoomList);$zoomList->setZoomMeeting($this);}return $this;}public function removeZoomList(ZoomList $zoomList): static{if ($this->zoomLists->removeElement($zoomList)) {// set the owning side to null (unless already changed)if ($zoomList->getZoomMeeting() === $this) {$zoomList->setZoomMeeting(null);}}return $this;}public function getZoomId(): ?int{return $this->zoomId;}public function setZoomId(?int $zoomId): static{$this->zoomId = $zoomId;return $this;}public function getZoomType(): ?int{return $this->zoomType;}public function setZoomType(int $zoomType): static{$this->zoomType = $zoomType;return $this;}public function getStartUrl(): ?string{return $this->startUrl;}public function setStartUrl(?string $startUrl): static{$this->startUrl = $startUrl;return $this;}public function getJoinUrl(): ?string{return $this->joinUrl;}public function setJoinUrl(?string $joinUrl): static{$this->joinUrl = $joinUrl;return $this;}public function getDuration(): ?int{return $this->duration;}public function setDuration(int $duration): static{$this->duration = $duration;return $this;}public function getPasscode(): ?string{return $this->passcode;}public function setPasscode(?string $passcode): static{$this->passcode = $passcode;return $this;}public function getAgenda(): ?string{return $this->agenda;}public function setAgenda(?string $agenda): static{$this->agenda = $agenda;return $this;}/*** @return Collection<int, Branch>*/public function getBranches(): Collection{return $this->branches;}public function addBranch(Branch $branch): static{if (!$this->branches->contains($branch)) {$this->branches->add($branch);}return $this;}public function removeBranch(Branch $branch): static{$this->branches->removeElement($branch);return $this;}public function getMeetingType(): ?int{return $this->meetingType;}public function setMeetingType(?int $meetingType): static{$this->meetingType = $meetingType;return $this;}public function getZoomConfig(): ?ZoomConfig{return $this->zoomConfig;}public function setZoomConfig(?ZoomConfig $zoomConfig): static{$this->zoomConfig = $zoomConfig;return $this;}}