src/Entity/Tipo.php line 11
<?phpnamespace App\Entity;use App\Repository\TipoRepository;use Doctrine\Common\Collections\ArrayCollection;use Doctrine\Common\Collections\Collection;use Doctrine\ORM\Mapping as ORM;#[ORM\Entity(repositoryClass: TipoRepository::class)]class Tipo{#[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\ManyToOne(inversedBy: 'tipos')]private ?Cliente $cliente = null;#[ORM\OneToMany(mappedBy: 'tipo', targetEntity: Documento::class)]private Collection $documentos;public function __construct(){$this->documentos = 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;}public function getCliente(): ?Cliente{return $this->cliente;}public function setCliente(?Cliente $cliente): static{$this->cliente = $cliente;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->setTipo($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->getTipo() === $this) {$documento->setTipo(null);}}return $this;}}