src/Entity/Cliente.php line 11
<?phpnamespace App\Entity;use App\Repository\ClienteRepository;use Doctrine\Common\Collections\ArrayCollection;use Doctrine\Common\Collections\Collection;use Doctrine\ORM\Mapping as ORM;#[ORM\Entity(repositoryClass: ClienteRepository::class)]class Cliente{#[ORM\Id]#[ORM\GeneratedValue]#[ORM\Column]private ?int $id = null;#[ORM\Column(length: 255)]private ?string $nome = null;#[ORM\Column(length: 255, nullable: true)]private ?string $extraFields = null;#[ORM\ManyToMany(targetEntity: User::class, inversedBy: 'clientes')]private Collection $users;#[ORM\ManyToMany(targetEntity: Caixa::class, mappedBy: 'clientes')]private Collection $caixas;#[ORM\OneToMany(mappedBy: 'cliente', targetEntity: Classificacao::class)]private Collection $classificacaos;#[ORM\OneToMany(mappedBy: 'cliente', targetEntity: Documento::class)]private Collection $documentos;#[ORM\OneToMany(mappedBy: 'cliente', targetEntity: Tipo::class)]private Collection $tipos;#[ORM\ManyToOne(inversedBy: 'clientes')]private ?ClienteAll $clienteAll = null;#[ORM\OneToMany(mappedBy: 'cliente', targetEntity: Fluxo::class)]private Collection $fluxos;public function __construct(){$this->users = new ArrayCollection();$this->caixas = new ArrayCollection();$this->classificacaos = new ArrayCollection();$this->registros = new ArrayCollection();$this->documentos = new ArrayCollection();$this->tipos = new ArrayCollection();$this->fluxos = new ArrayCollection();}public function getId(): ?int{return $this->id;}public function getNome(): ?string{return $this->nome;}public function setNome(string $nome): static{$this->nome = $nome;return $this;}public function getExtraFields(): ?string{return $this->extraFields;}public function setExtraFields(?string $extraFields): static{$this->extraFields = $extraFields;return $this;}/*** @return Collection<int, User>*/public function getUsers(): Collection{return $this->users;}public function addUser(User $user): static{if (!$this->users->contains($user)) {$this->users->add($user);}return $this;}public function removeUser(User $user): static{$this->users->removeElement($user);return $this;}/*** @return Collection<int, Caixa>*/public function getCaixas(): Collection{return $this->caixas;}public function addCaixa(Caixa $caixa): static{if (!$this->caixas->contains($caixa)) {$this->caixas->add($caixa);$caixa->addCliente($this);}return $this;}public function removeCaixa(Caixa $caixa): static{if ($this->caixas->removeElement($caixa)) {$caixa->removeCliente($this);}return $this;}/*** @return Collection<int, Classificacao>*/public function getClassificacaos(): Collection{return $this->classificacaos;}public function addClassificacao(Classificacao $classificacao): static{if (!$this->classificacaos->contains($classificacao)) {$this->classificacaos->add($classificacao);$classificacao->setCliente($this);}return $this;}public function removeClassificacao(Classificacao $classificacao): static{if ($this->classificacaos->removeElement($classificacao)) {// set the owning side to null (unless already changed)if ($classificacao->getCliente() === $this) {$classificacao->setCliente(null);}}return $this;}/*** @return Collection<int, Documento>*/public function getDocumentos(): Collection{return $this->documentos;}public function addDocumento(Documento $documento): static{if (!$this->documentos->contains($documento)) {$this->documentos->add($documento);$documento->setCliente($this);}return $this;}public function removeDocumento(Documento $documento): static{if ($this->documentos->removeElement($documento)) {// set the owning side to null (unless already changed)if ($documento->getCliente() === $this) {$documento->setCliente(null);}}return $this;}/*** @return Collection<int, Tipo>*/public function getTipos(): Collection{return $this->tipos;}public function addTipo(Tipo $tipo): static{if (!$this->tipos->contains($tipo)) {$this->tipos->add($tipo);$tipo->setCliente($this);}return $this;}public function removeTipo(Tipo $tipo): static{if ($this->tipos->removeElement($tipo)) {// set the owning side to null (unless already changed)if ($tipo->getCliente() === $this) {$tipo->setCliente(null);}}return $this;}/*** @return Collection<int, Fluxo>*/public function getFluxos(): Collection{return $this->fluxos;}public function addFluxo(Fluxo $fluxo): static{if (!$this->fluxos->contains($fluxo)) {$this->fluxos->add($fluxo);$fluxo->setCliente($this);}return $this;}public function removeFluxo(Fluxo $fluxo): static{if ($this->fluxos->removeElement($fluxo)) {// set the owning side to null (unless already changed)if ($fluxo->getCliente() === $this) {$fluxo->setCliente(null);}}return $this;}public function getClienteAll(): ?ClienteAll{return $this->clienteAll;}public function setClienteAll(?ClienteAll $clienteAll): static{$this->clienteAll = $clienteAll;return $this;}}