src/Entity/VideoAppelleTonEc.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\VideoAppelleTonEcRepository;
  4. use Doctrine\Common\Collections\ArrayCollection;
  5. use Doctrine\Common\Collections\Collection;
  6. use Doctrine\ORM\Mapping as ORM;
  7. #[ORM\Entity(repositoryClassVideoAppelleTonEcRepository::class)]
  8. class VideoAppelleTonEc
  9. {
  10.     #[ORM\Id]
  11.     #[ORM\GeneratedValue]
  12.     #[ORM\Column(type'integer')]
  13.     private $id;
  14.     #[ORM\Column(type'string'length255)]
  15.     private $url;
  16.     #[ORM\Column(type'text')]
  17.     private $svgCode;
  18.     #[ORM\ManyToMany(targetEntityAccountingFirm::class, inversedBy'videoAppelleTonEcs')]
  19.     private $accountingFirms;
  20.     public function __construct()
  21.     {
  22.         $this->accountingFirms = new ArrayCollection();
  23.     }
  24.     public function getId(): ?int
  25.     {
  26.         return $this->id;
  27.     }
  28.     public function getUrl(): ?string
  29.     {
  30.         return $this->url;
  31.     }
  32.     public function setUrl(string $url): self
  33.     {
  34.         $this->url $url;
  35.         return $this;
  36.     }
  37.     public function getSvgCode(): ?string
  38.     {
  39.         return $this->svgCode;
  40.     }
  41.     public function setSvgCode(string $svgCode): self
  42.     {
  43.         $this->svgCode $svgCode;
  44.         return $this;
  45.     }
  46.     /**
  47.      * @return Collection<int, AccountingFirm>
  48.      */
  49.     public function getAccountingFirms(): Collection
  50.     {
  51.         return $this->accountingFirms;
  52.     }
  53.     public function addAccountingFirm(AccountingFirm $accountingFirm): self
  54.     {
  55.         if (!$this->accountingFirms->contains($accountingFirm)) {
  56.             $this->accountingFirms[] = $accountingFirm;
  57.         }
  58.         return $this;
  59.     }
  60.     public function removeAccountingFirm(AccountingFirm $accountingFirm): self
  61.     {
  62.         $this->accountingFirms->removeElement($accountingFirm);
  63.         return $this;
  64.     }
  65. }