<?php
namespace App\Entity;
use App\Repository\VideoAppelleTonEcRepository;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: VideoAppelleTonEcRepository::class)]
class VideoAppelleTonEc
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column(type: 'integer')]
private $id;
#[ORM\Column(type: 'string', length: 255)]
private $url;
#[ORM\Column(type: 'text')]
private $svgCode;
#[ORM\ManyToMany(targetEntity: AccountingFirm::class, inversedBy: 'videoAppelleTonEcs')]
private $accountingFirms;
public function __construct()
{
$this->accountingFirms = new ArrayCollection();
}
public function getId(): ?int
{
return $this->id;
}
public function getUrl(): ?string
{
return $this->url;
}
public function setUrl(string $url): self
{
$this->url = $url;
return $this;
}
public function getSvgCode(): ?string
{
return $this->svgCode;
}
public function setSvgCode(string $svgCode): self
{
$this->svgCode = $svgCode;
return $this;
}
/**
* @return Collection<int, AccountingFirm>
*/
public function getAccountingFirms(): Collection
{
return $this->accountingFirms;
}
public function addAccountingFirm(AccountingFirm $accountingFirm): self
{
if (!$this->accountingFirms->contains($accountingFirm)) {
$this->accountingFirms[] = $accountingFirm;
}
return $this;
}
public function removeAccountingFirm(AccountingFirm $accountingFirm): self
{
$this->accountingFirms->removeElement($accountingFirm);
return $this;
}
}