<?phpnamespace App\Domain\Entity;use Doctrine\Common\Collections\ArrayCollection;use Doctrine\Common\Collections\Collection;use Doctrine\DBAL\Types\Types;use Doctrine\ORM\Mapping as ORM;use Symfony\Component\Uid\Uuid;class TipoPreco{ private ?string $nombre = null; private ?\DateTimeInterface $createdAt = null; private ?\DateTimeInterface $updatedAt = null; private ?\DateTimeInterface $deletedAt = null; private ?Uuid $id = null; private Collection $sistemaRetribucions; private Collection $precos; public function __construct() { $this->sistemaRetribucions = new ArrayCollection(); $this->precos = new ArrayCollection(); } public function getNombre(): ?string { return $this->nombre; } public function setNombre(?string $nombre): static { $this->nombre = $nombre; return $this; } public function getCreatedAt(): ?\DateTimeInterface { return $this->createdAt; } public function setCreatedAt(\DateTimeInterface $createdAt): static { $this->createdAt = $createdAt; return $this; } public function getUpdatedAt(): ?\DateTimeInterface { return $this->updatedAt; } public function setUpdatedAt(\DateTimeInterface $updatedAt): static { $this->updatedAt = $updatedAt; return $this; } public function getDeletedAt(): ?\DateTimeInterface { return $this->deletedAt; } public function setDeletedAt(?\DateTimeInterface $deletedAt): static { $this->deletedAt = $deletedAt; return $this; } public function getId(): ?Uuid { return $this->id; } /** * @return Collection<int, SistemaRetribucion> */ public function getSistemaRetribucions(): Collection { return $this->sistemaRetribucions; } public function addSistemaRetribucion(SistemaRetribucion $sistemaRetribucion): static { if (!$this->sistemaRetribucions->contains($sistemaRetribucion)) { $this->sistemaRetribucions->add($sistemaRetribucion); $sistemaRetribucion->setTipoPreco($this); } return $this; } public function removeSistemaRetribucion(SistemaRetribucion $sistemaRetribucion): static { if ($this->sistemaRetribucions->removeElement($sistemaRetribucion)) { // set the owning side to null (unless already changed) if ($sistemaRetribucion->getTipoPreco() === $this) { $sistemaRetribucion->setTipoPreco(null); } } return $this; } /** * @return Collection<int, Preco> */ public function getPrecos(): Collection { return $this->precos; } public function addPreco(Preco $preco): static { if (!$this->precos->contains($preco)) { $this->precos->add($preco); $preco->addTipoPreco($this); } return $this; } public function removePreco(Preco $preco): static { if ($this->precos->removeElement($preco)) { $preco->removeTipoPreco($this); } return $this; }}