src/Entity/CRM/Branch.php line 19

  1. <?php
  2. namespace App\Entity\CRM;
  3. use App\Entity\CRM\Notification;
  4. use App\Entity\CRM\Order;
  5. use App\Entity\CRM\Product;
  6. use App\Entity\CRM\Room;
  7. use App\Entity\CRM\Worker;
  8. use App\Entity\CRM\ZoomMeeting;
  9. use App\Entity\CRM\NumberBlocking;
  10. use App\Repository\BranchRepository;
  11. use Doctrine\Common\Collections\ArrayCollection;
  12. use Doctrine\Common\Collections\Collection;
  13. use Doctrine\DBAL\Types\Types;
  14. use Doctrine\ORM\Mapping as ORM;
  15. #[ORM\Entity(repositoryClassBranchRepository::class)]
  16. class Branch
  17. {
  18.     #[ORM\Id]
  19.     #[ORM\GeneratedValue]
  20.     #[ORM\Column]
  21.     private ?int $id null;
  22.     #[ORM\Column(length255)]
  23.     private ?string $name null;
  24.     #[ORM\Column(length255nullabletrue)]
  25.     private ?string $address null;
  26.     #[ORM\Column]
  27.     private ?bool $isActive null;
  28.     #[ORM\ManyToMany(targetEntityAdmin::class, mappedBy'branches')]
  29.     private Collection $admins;
  30.     #[ORM\OneToMany(mappedBy'branch'targetEntityDepartment::class, orphanRemovaltrue)]
  31.     private Collection $departments;
  32.     #[ORM\OneToMany(mappedBy'branch'targetEntityWorker::class)]
  33.     private Collection $workers;
  34.     #[ORM\OneToOne(mappedBy'branch'cascade: ['persist''remove'])]
  35.     private ?MailConfig $mailConfig null;
  36.     #[ORM\OneToMany(mappedBy'branch'targetEntityOrder::class)]
  37.     private Collection $orders;
  38.     #[ORM\OneToMany(mappedBy'branch'targetEntityRoom::class, orphanRemovaltrue)]
  39.     private Collection $rooms;
  40.     #[ORM\Column(length9)]
  41.     private ?string $regon null;
  42.     #[ORM\Column(length10)]
  43.     private ?string $nip null;
  44.     #[ORM\OneToOne(mappedBy'branch'cascade: ['persist''remove'])]
  45.     private ?BranchConfig $branchConfig null;
  46.     #[ORM\OneToMany(mappedBy'branch'targetEntityBhpOrderProduct::class)]
  47.     private Collection $BhpOrderProducts;
  48.     #[ORM\Column(length255nullabletrue)]
  49.     private ?string $wdrozeniaMail null;
  50.     #[ORM\Column(length255nullabletrue)]
  51.     private ?string $wdrozeniaMailPassword null;
  52.     #[ORM\Column(typeTypes::ARRAY , nullabletrue)]
  53.     private ?array $contractSignedMail = [];
  54.     #[ORM\Column]
  55.     private ?int $platformaOddzialId null;
  56.     #[ORM\OneToMany(mappedBy'branch'targetEntityCommercialOfferIndividual::class)]
  57.     private Collection $commercialOfferIndividuals;
  58.     #[ORM\Column(length255)]
  59.     private ?string $color null;
  60.     #[ORM\OneToMany(mappedBy'branch'targetEntityNotification::class)]
  61.     private Collection $notifications;
  62.     #[ORM\Column(typeTypes::JSONnullabletrue)]
  63.     private ?array $bhpMail null;
  64.     #[ORM\Column(length255nullabletrue)]
  65.     private ?string $phone null;
  66.     #[ORM\Column(length255nullabletrue)]
  67.     private ?string $phoneForSms null;
  68.     #[ORM\ManyToMany(targetEntityAdmin::class)]
  69.     private Collection $adminHr;
  70.     #[ORM\ManyToMany(targetEntityZoomMeeting::class, mappedBy'branches')]
  71.     private Collection $zoomMeetings;
  72.     #[ORM\Column(typeTypes::JSONnullabletrue)]
  73.     private ?array $implementerMailsForAuditReady null;
  74.     #[ORM\Column(typeTypes::JSONnullabletrue)]
  75.     private ?array $orderReturnedMail = [];
  76.     #[ORM\ManyToMany(targetEntityProduct::class)]
  77.     private ?Collection $orderReturnedProducts;
  78.     #[ORM\Column(length255nullabletrue)]
  79.     private ?string $firmName null;
  80.     #[ORM\Column(length20nullabletrue)]
  81.     private ?string $optimaInvoiceSeries null;
  82.     #[ORM\Column(length100nullabletrue)]
  83.     private ?string $optimaAccountingJournal null;
  84.     #[ORM\Column(length100nullabletrue)]
  85.     private ?string $optimaAccountWn null;
  86.     #[ORM\Column(length100nullabletrue)]
  87.     private ?string $optimaAccountMaNet null;
  88.     #[ORM\Column(length100nullabletrue)]
  89.     private ?string $optimaAccountMaVat null;
  90.     #[ORM\Column(length255nullabletrue)]
  91.     private ?string $sellerName null;
  92.     #[ORM\Column(length255nullabletrue)]
  93.     private ?string $bankName null;
  94.     #[ORM\Column(length255nullabletrue)]
  95.     private ?string $bankAccount null;
  96.     #[ORM\OneToMany(mappedBy'branch'targetEntityNumberBlocking::class)]
  97.     private Collection $numberBlockings;
  98.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  99.     private ?string $addressDataForPlatform null;
  100.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  101.     private ?string $mailFooterCompanyInfo null;
  102.     #[ORM\OneToMany(mappedBy'tenant'targetEntityDataSource::class)]
  103.     private Collection $dataSources;
  104.     #[ORM\OneToMany(mappedBy'tenant'targetEntityTranscriptionJob::class)]
  105.     private Collection $transcriptionJobs;
  106.     public function __construct()
  107.     {
  108.         $this->admins = new ArrayCollection();
  109.         $this->departments = new ArrayCollection();
  110.         $this->workers = new ArrayCollection();
  111.         $this->rooms = new ArrayCollection();
  112.         $this->orders = new ArrayCollection();
  113.         $this->BhpOrderProducts = new ArrayCollection();
  114.         $this->commercialOfferIndividuals = new ArrayCollection();
  115.         $this->notifications = new ArrayCollection();
  116.         $this->adminHr = new ArrayCollection();
  117.         $this->zoomMeetings = new ArrayCollection();
  118.         $this->orderReturnedProducts = new ArrayCollection();
  119.         $this->numberBlockings = new ArrayCollection();
  120.         $this->dataSources = new ArrayCollection();
  121.         $this->transcriptionJobs = new ArrayCollection();
  122.     }
  123.     public function __toString()
  124.     {
  125.         return $this->name;
  126.     }
  127.     public function getId(): ?int
  128.     {
  129.         return $this->id;
  130.     }
  131.     public function getName(): ?string
  132.     {
  133.         return $this->name;
  134.     }
  135.     public function setName(string $name): self
  136.     {
  137.         $this->name $name;
  138.         return $this;
  139.     }
  140.     public function getAddress(): ?string
  141.     {
  142.         return $this->address;
  143.     }
  144.     public function setAddress(?string $address): self
  145.     {
  146.         $this->address $address;
  147.         return $this;
  148.     }
  149.     public function isIsActive(): ?bool
  150.     {
  151.         return $this->isActive;
  152.     }
  153.     public function setIsActive(bool $isActive): self
  154.     {
  155.         $this->isActive $isActive;
  156.         return $this;
  157.     }
  158.     /**
  159.      * @return Collection|Admin[]
  160.      */
  161.     public function getAdmins(): Collection
  162.     {
  163.         return $this->admins;
  164.     }
  165.     public function addAdmin(Admin $admin): self
  166.     {
  167.         if (!$this->admins->contains($admin)) {
  168.             $this->admins[] = $admin;
  169.         }
  170.         return $this;
  171.     }
  172.     public function removeAdmin(Admin $admin): self
  173.     {
  174.         $this->admins->removeElement($admin);
  175.         return $this;
  176.     }
  177.     public function countAdmins(): int
  178.     {
  179.         return $this->admins->count();
  180.     }
  181.     /**
  182.      * @return Collection<int, Department>
  183.      */
  184.     public function getDepartments(): Collection
  185.     {
  186.         return $this->departments;
  187.     }
  188.     public function addDepartment(Department $department): self
  189.     {
  190.         if (!$this->departments->contains($department)) {
  191.             $this->departments->add($department);
  192.             $department->setBranch($this);
  193.         }
  194.         return $this;
  195.     }
  196.     public function removeDepartment(Department $department): self
  197.     {
  198.         if ($this->departments->removeElement($department)) {
  199.             // set the owning side to null (unless already changed)
  200.             if ($department->getBranch() === $this) {
  201.                 $department->setBranch(null);
  202.             }
  203.         }
  204.         return $this;
  205.     }
  206.     /**
  207.      * @return Collection<int, Worker>
  208.      */
  209.     public function getWorkers(): Collection
  210.     {
  211.         return $this->workers;
  212.     }
  213.     public function addWorker(Worker $worker): self
  214.     {
  215.         if (!$this->workers->contains($worker)) {
  216.             $this->workers->add($worker);
  217.             $worker->setBranch($this);
  218.         }
  219.         return $this;
  220.     }
  221.     public function removeWorker(Worker $worker): self
  222.     {
  223.         if ($this->workers->removeElement($worker)) {
  224.             // set the owning side to null (unless already changed)
  225.             if ($worker->getBranch() === $this) {
  226.                 $worker->setBranch(null);
  227.             }
  228.         }
  229.         return $this;
  230.     }
  231.     public function getMailConfig(): ?MailConfig
  232.     {
  233.         return $this->mailConfig;
  234.     }
  235.     public function setMailConfig(MailConfig $mailConfig): static
  236.     {
  237.         // set the owning side of the relation if necessary
  238.         if ($mailConfig->getBranch() !== $this) {
  239.             $mailConfig->setBranch($this);
  240.         }
  241.         $this->mailConfig $mailConfig;
  242.         return $this;
  243.     }
  244.     /**
  245.      * @return Collection<int, Order>
  246.      */
  247.     public function getOrders(): Collection
  248.     {
  249.         return $this->orders;
  250.     }
  251.     public function addOrder(Order $order): static
  252.     {
  253.         if (!$this->orders->contains($order)) {
  254.             $this->orders->add($order);
  255.             $order->setBranch($this);
  256.         }
  257.         return $this;
  258.     }
  259.     public function removeOrder(Order $order): static
  260.     {
  261.         if ($this->orders->removeElement($order)) {
  262.             // set the owning side to null (unless already changed)
  263.             if ($order->getBranch() === $this) {
  264.                 $order->setBranch(null);
  265.             }
  266.         }
  267.         return $this;
  268.     }
  269.     /**
  270.      * @return Collection<int, Room>
  271.      */
  272.     public function getRooms(): Collection
  273.     {
  274.         return $this->rooms;
  275.     }
  276.     public function addRoom(Room $room): static
  277.     {
  278.         if (!$this->rooms->contains($room)) {
  279.             $this->rooms->add($room);
  280.             $room->setBranch($this);
  281.         }
  282.         return $this;
  283.     }
  284.     public function removeRoom(Room $room): static
  285.     {
  286.         if ($this->rooms->removeElement($room)) {
  287.             // set the owning side to null (unless already changed)
  288.             if ($room->getBranch() === $this) {
  289.                 $room->setBranch(null);
  290.             }
  291.         }
  292.         return $this;
  293.     }
  294.     public function getRegon(): ?string
  295.     {
  296.         return $this->regon;
  297.     }
  298.     public function setRegon(string $regon): static
  299.     {
  300.         $this->regon $regon;
  301.         return $this;
  302.     }
  303.     public function getNip(): ?string
  304.     {
  305.         return $this->nip;
  306.     }
  307.     public function setNip(string $nip): static
  308.     {
  309.         $this->nip $nip;
  310.         return $this;
  311.     }
  312.     /**
  313.      * @param int|null $id
  314.      */
  315.     public function setId(?int $id): void
  316.     {
  317.         $this->id $id;
  318.     }
  319.     public function getBranchConfig(): ?BranchConfig
  320.     {
  321.         return $this->branchConfig;
  322.     }
  323.     public function setBranchConfig(BranchConfig $branchConfig): static
  324.     {
  325.         // set the owning side of the relation if necessary
  326.         if ($branchConfig->getBranch() !== $this) {
  327.             $branchConfig->setBranch($this);
  328.         }
  329.         $this->branchConfig $branchConfig;
  330.         return $this;
  331.     }
  332.     /**
  333.      * @return Collection<int, BhpOrderProduct>
  334.      */
  335.     public function getBhpOrderProducts(): Collection
  336.     {
  337.         return $this->BhpOrderProducts;
  338.     }
  339.     public function addBhpOrderProduct(BhpOrderProduct $BhpOrderProduct): static
  340.     {
  341.         if (!$this->BhpOrderProducts->contains($BhpOrderProduct)) {
  342.             $this->BhpOrderProducts->add($BhpOrderProduct);
  343.             $BhpOrderProduct->setBranch($this);
  344.         }
  345.         return $this;
  346.     }
  347.     public function getWdrozeniaMail(): ?string
  348.     {
  349.         return $this->wdrozeniaMail;
  350.     }
  351.     public function setWdrozeniaMail(?string $wdrozeniaMail): static
  352.     {
  353.         $this->wdrozeniaMail $wdrozeniaMail;
  354.         return $this;
  355.     }
  356.     public function removeBhpOrderProduct(BhpOrderProduct $BhpOrderProduct): static
  357.     {
  358.         if ($this->BhpOrderProducts->removeElement($BhpOrderProduct)) {
  359.             // set the owning side to null (unless already changed)
  360.             if ($BhpOrderProduct->getBranch() === $this) {
  361.                 $BhpOrderProduct->setBranch(null);
  362.             }
  363.         }
  364.         return $this;
  365.     }
  366.     public function getWdrozeniaMailPassword(): ?string
  367.     {
  368.         return $this->wdrozeniaMailPassword;
  369.     }
  370.     public function setWdrozeniaMailPassword(?string $wdrozeniaMailPassword): static
  371.     {
  372.         $this->wdrozeniaMailPassword $wdrozeniaMailPassword;
  373.         return $this;
  374.     }
  375.     public function getContractSignedMail(): array
  376.     {
  377.         return $this->contractSignedMail;
  378.     }
  379.     public function setContractSignedMail(?array $contractSignedMail): static
  380.     {
  381.         $this->contractSignedMail $contractSignedMail;
  382.         return $this;
  383.     }
  384.     public function getPlatformaOddzialId(): ?int
  385.     {
  386.         return $this->platformaOddzialId;
  387.     }
  388.     public function setPlatformaOddzialId(int $platformaOddzialId): static
  389.     {
  390.         $this->platformaOddzialId $platformaOddzialId;
  391.         return $this;
  392.     }
  393.     /**
  394.      * @return Collection<int, CommercialOfferIndividual>
  395.      */
  396.     public function getCommercialOfferIndividuals(): Collection
  397.     {
  398.         return $this->commercialOfferIndividuals;
  399.     }
  400.     public function addCommercialOfferIndividual(CommercialOfferIndividual $commercialOfferIndividual): static
  401.     {
  402.         if (!$this->commercialOfferIndividuals->contains($commercialOfferIndividual)) {
  403.             $this->commercialOfferIndividuals->add($commercialOfferIndividual);
  404.             $commercialOfferIndividual->setBranch($this);
  405.         }
  406.         return $this;
  407.     }
  408.     public function removeCommercialOfferIndividual(CommercialOfferIndividual $commercialOfferIndividual): static
  409.     {
  410.         if ($this->commercialOfferIndividuals->removeElement($commercialOfferIndividual)) {
  411.             // set the owning side to null (unless already changed)
  412.             if ($commercialOfferIndividual->getBranch() === $this) {
  413.                 $commercialOfferIndividual->setBranch(null);
  414.             }
  415.         }
  416.         return $this;
  417.     }
  418.     public function getColor(): ?string
  419.     {
  420.         return $this->color;
  421.     }
  422.     public function setColor(string $color): static
  423.     {
  424.         $this->color $color;
  425.         return $this;
  426.     }
  427.     /**
  428.      * @return Collection<int, Notification>
  429.      */
  430.     public function getNotifications(): Collection
  431.     {
  432.         return $this->notifications;
  433.     }
  434.     public function addNotification(Notification $notification): static
  435.     {
  436.         if (!$this->notifications->contains($notification)) {
  437.             $this->notifications->add($notification);
  438.             $notification->setBranch($this);
  439.         }
  440.         return $this;
  441.     }
  442.     public function removeNotification(Notification $notification): static
  443.     {
  444.         if ($this->notifications->removeElement($notification)) {
  445.             // set the owning side to null (unless already changed)
  446.             if ($notification->getBranch() === $this) {
  447.                 $notification->setBranch(null);
  448.             }
  449.         }
  450.         return $this;
  451.     }
  452.     public function getBhpMail(): ?array
  453.     {
  454.         return $this->bhpMail;
  455.     }
  456.     public function setBhpMail(?array $bhpMail): static
  457.     {
  458.         $this->bhpMail $bhpMail;
  459.         return $this;
  460.     }
  461.     public function getPhone(): ?string
  462.     {
  463.         return $this->phone;
  464.     }
  465.     public function setPhone(?string $phone): static
  466.     {
  467.         $this->phone $phone;
  468.         return $this;
  469.     }
  470.     /**
  471.      * @return Collection<int, Admin>
  472.      */
  473.     public function getAdminHr(): Collection
  474.     {
  475.         return $this->adminHr;
  476.     }
  477.     public function addAdminHr(Admin $adminHr): static
  478.     {
  479.         if (!$this->adminHr->contains($adminHr)) {
  480.             $this->adminHr->add($adminHr);
  481.         }
  482.         return $this;
  483.     }
  484.     public function removeAdminHr(Admin $adminHr): static
  485.     {
  486.         $this->adminHr->removeElement($adminHr);
  487.         return $this;
  488.     }
  489.     /**
  490.      * @return Collection<int, ZoomMeeting>
  491.      */
  492.     public function getZoomMeetings(): Collection
  493.     {
  494.         return $this->zoomMeetings;
  495.     }
  496.     public function addZoomMeeting(ZoomMeeting $zoomMeeting): static
  497.     {
  498.         if (!$this->zoomMeetings->contains($zoomMeeting)) {
  499.             $this->zoomMeetings->add($zoomMeeting);
  500.             $zoomMeeting->addBranch($this);
  501.         }
  502.         return $this;
  503.     }
  504.     public function removeZoomMeeting(ZoomMeeting $zoomMeeting): static
  505.     {
  506.         if ($this->zoomMeetings->removeElement($zoomMeeting)) {
  507.             $zoomMeeting->removeBranch($this);
  508.         }
  509.         return $this;
  510.     }
  511.     public function getImplementerMailsForAuditReady(): ?array
  512.     {
  513.         return $this->implementerMailsForAuditReady;
  514.     }
  515.     public function setImplementerMailsForAuditReady(?array $implementerMailsForAuditReady): static
  516.     {
  517.         $this->implementerMailsForAuditReady $implementerMailsForAuditReady;
  518.         return $this;
  519.     }
  520.     public function getOrderReturnedMail(): ?array
  521.     {
  522.         return $this->orderReturnedMail;
  523.     }
  524.     public function setOrderReturnedMail(?array $orderReturnedMail): static
  525.     {
  526.         $this->orderReturnedMail $orderReturnedMail;
  527.         return $this;
  528.     }
  529.     /**
  530.      * @return Collection|null
  531.      */
  532.     public function getOrderReturnedProducts(): ?Collection
  533.     {
  534.         return $this->orderReturnedProducts;
  535.     }
  536.     public function addOrderReturnedProduct(Product $orderReturnedProduct): static
  537.     {
  538.         if (!$this->orderReturnedProducts->contains($orderReturnedProduct)) {
  539.             $this->orderReturnedProducts->add($orderReturnedProduct);
  540.         }
  541.         return $this;
  542.     }
  543.     public function removeOrderReturnedProduct(Product $orderReturnedProduct): static
  544.     {
  545.         $this->orderReturnedProducts->removeElement($orderReturnedProduct);
  546.         return $this;
  547.     }
  548.     public function getFirmName(): ?string
  549.     {
  550.         return $this->firmName;
  551.     }
  552.     public function setFirmName(?string $firmName): static
  553.     {
  554.         $this->firmName $firmName;
  555.         return $this;
  556.     }
  557.     public function getOptimaInvoiceSeries(): ?string
  558.     {
  559.         return $this->optimaInvoiceSeries;
  560.     }
  561.     public function setOptimaInvoiceSeries(?string $optimaInvoiceSeries): static
  562.     {
  563.         $this->optimaInvoiceSeries $optimaInvoiceSeries;
  564.         return $this;
  565.     }
  566.     public function getOptimaAccountingJournal(): ?string
  567.     {
  568.         return $this->optimaAccountingJournal;
  569.     }
  570.     public function setOptimaAccountingJournal(?string $optimaAccountingJournal): static
  571.     {
  572.         $this->optimaAccountingJournal $optimaAccountingJournal;
  573.         return $this;
  574.     }
  575.     public function getOptimaAccountWn(): ?string
  576.     {
  577.         return $this->optimaAccountWn;
  578.     }
  579.     public function setOptimaAccountWn(?string $optimaAccountWn): static
  580.     {
  581.         $this->optimaAccountWn $optimaAccountWn;
  582.         return $this;
  583.     }
  584.     public function getOptimaAccountMaNet(): ?string
  585.     {
  586.         return $this->optimaAccountMaNet;
  587.     }
  588.     public function setOptimaAccountMaNet(?string $optimaAccountMaNet): static
  589.     {
  590.         $this->optimaAccountMaNet $optimaAccountMaNet;
  591.         return $this;
  592.     }
  593.     public function getOptimaAccountMaVat(): ?string
  594.     {
  595.         return $this->optimaAccountMaVat;
  596.     }
  597.     public function setOptimaAccountMaVat(?string $optimaAccountMaVat): static
  598.     {
  599.         $this->optimaAccountMaVat $optimaAccountMaVat;
  600.         return $this;
  601.     }
  602.     public function getSellerName(): ?string
  603.     {
  604.         return $this->sellerName;
  605.     }
  606.     public function setSellerName(?string $sellerName): static
  607.     {
  608.         $this->sellerName $sellerName;
  609.         return $this;
  610.     }
  611.     public function getBankName(): ?string
  612.     {
  613.         return $this->bankName;
  614.     }
  615.     public function setBankName(?string $bankName): static
  616.     {
  617.         $this->bankName $bankName;
  618.         return $this;
  619.     }
  620.     public function getBankAccount(): ?string
  621.     {
  622.         return $this->bankAccount;
  623.     }
  624.     public function setBankAccount(?string $bankAccount): static
  625.     {
  626.         $this->bankAccount $bankAccount;
  627.         return $this;
  628.     }
  629.     /**
  630.      * @return Collection<int, NumberBlocking>
  631.      */
  632.     public function getNumberBlockings(): Collection
  633.     {
  634.         return $this->numberBlockings;
  635.     }
  636.     public function addNumberBlocking(NumberBlocking $numberBlocking): static
  637.     {
  638.         if (!$this->numberBlockings->contains($numberBlocking)) {
  639.             $this->numberBlockings->add($numberBlocking);
  640.             $numberBlocking->setBranch($this);
  641.         }
  642.         return $this;
  643.     }
  644.     public function removeNumberBlocking(NumberBlocking $numberBlocking): static
  645.     {
  646.         if ($this->numberBlockings->removeElement($numberBlocking)) {
  647.             // set the owning side to null (unless already changed)
  648.             if ($numberBlocking->getBranch() === $this) {
  649.                 $numberBlocking->setBranch(null);
  650.             }
  651.         }
  652.         return $this;
  653.     }
  654.     public function getAddressDataForPlatform(): ?string
  655.     {
  656.         return $this->addressDataForPlatform;
  657.     }
  658.     public function setAddressDataForPlatform(?string $addressDataForPlatform): static
  659.     {
  660.         $this->addressDataForPlatform $addressDataForPlatform;
  661.         return $this;
  662.     }
  663.     public function getMailFooterCompanyInfo(): ?string
  664.     {
  665.         return $this->mailFooterCompanyInfo;
  666.     }
  667.     public function setMailFooterCompanyInfo(?string $mailFooterCompanyInfo): static
  668.     {
  669.         $this->mailFooterCompanyInfo $mailFooterCompanyInfo;
  670.         return $this;
  671.     }
  672.     /**
  673.      * @return Collection<int, DataSource>
  674.      */
  675.     public function getDataSources(): Collection
  676.     {
  677.         return $this->dataSources;
  678.     }
  679.     public function addDataSource(DataSource $dataSource): static
  680.     {
  681.         if (!$this->dataSources->contains($dataSource)) {
  682.             $this->dataSources->add($dataSource);
  683.             $dataSource->setTenant($this);
  684.         }
  685.         return $this;
  686.     }
  687.     public function removeDataSource(DataSource $dataSource): static
  688.     {
  689.         if ($this->dataSources->removeElement($dataSource)) {
  690.             if ($dataSource->getTenant() === $this) {
  691.                 $dataSource->setTenant(null);
  692.             }
  693.         }
  694.         return $this;
  695.     }
  696.     /**
  697.      * @return Collection<int, TranscriptionJob>
  698.      */
  699.     public function getTranscriptionJobs(): Collection
  700.     {
  701.         return $this->transcriptionJobs;
  702.     }
  703.     public function addTranscriptionJob(TranscriptionJob $transcriptionJob): static
  704.     {
  705.         if (!$this->transcriptionJobs->contains($transcriptionJob)) {
  706.             $this->transcriptionJobs->add($transcriptionJob);
  707.             $transcriptionJob->setTenant($this);
  708.         }
  709.         return $this;
  710.     }
  711.     public function removeTranscriptionJob(TranscriptionJob $transcriptionJob): static
  712.     {
  713.         if ($this->transcriptionJobs->removeElement($transcriptionJob)) {
  714.             if ($transcriptionJob->getTenant() === $this) {
  715.                 $transcriptionJob->setTenant(null);
  716.             }
  717.         }
  718.         return $this;
  719.     }
  720.     public function getPhoneForSms(): ?string
  721.     {
  722.         return $this->phoneForSms;
  723.     }
  724.     public function setPhoneForSms(?string $phoneForSms): void
  725.     {
  726.         $this->phoneForSms $phoneForSms;
  727.     }
  728. }