src/Entity/ClienteAll.php line 11
<?phpnamespace App\Entity;use App\Repository\ClienteAllRepository;use Doctrine\Common\Collections\ArrayCollection;use Doctrine\Common\Collections\Collection;use Doctrine\ORM\Mapping as ORM;#[ORM\Entity(repositoryClass: ClienteAllRepository::class)]class ClienteAll{#[ORM\Id]#[ORM\GeneratedValue]#[ORM\Column]private ?int $id = null;#[ORM\Column(length: 255)]private ?string $nome = null;#[ORM\Column]private ?\DateTimeImmutable $createdAt = null;#[ORM\Column(length: 255, nullable: true)]private ?string $end = null;#[ORM\OneToMany(mappedBy: 'cliente', targetEntity: Cx::class)]private Collection $cxes;#[ORM\OneToMany(mappedBy: 'clienteAll', targetEntity: Cliente::class)]private Collection $clientes;#[ORM\Column(length: 255, nullable: true)]private ?string $logo = null;public function __construct(){$this->cxes = new ArrayCollection();$this->createdAt = new \DateTimeImmutable('America/Sao_Paulo');$this->clientes = 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 getCreatedAt(): ?\DateTimeImmutable{return $this->createdAt;}public function setCreatedAt(\DateTimeImmutable $createdAt): static{$this->createdAt = $createdAt;return $this;}public function getEnd(): ?string{return $this->end;}public function setEnd(?string $end): static{$this->end = $end;return $this;}/*** @return Collection<int, Cx>*/public function getCxes(): Collection{return $this->cxes;}public function addCx(Cx $cx): static{if (!$this->cxes->contains($cx)) {$this->cxes->add($cx);$cx->setCliente($this);}return $this;}public function removeCx(Cx $cx): static{if ($this->cxes->removeElement($cx)) {// set the owning side to null (unless already changed)if ($cx->getCliente() === $this) {$cx->setCliente(null);}}return $this;}/*** @return Collection<int, Cliente>*/public function getClientes(): Collection{return $this->clientes;}public function addCliente(Cliente $cliente): static{if (!$this->clientes->contains($cliente)) {$this->clientes->add($cliente);$cliente->setClienteAll($this);}return $this;}public function removeCliente(Cliente $cliente): static{if ($this->clientes->removeElement($cliente)) {// set the owning side to null (unless already changed)if ($cliente->getClienteAll() === $this) {$cliente->setClienteAll(null);}}return $this;}public function getLogo(): ?string{return $this->logo;}public function setLogo(?string $logo): static{$this->logo = $logo;return $this;}}