<?phpnamespace App\Domain\Entity;use DateTimeInterface;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 CompensacionGasto{ private ?Uuid $id = null; private ?string $concepto = null; private ?float $precio = null; private ?DateTimeInterface $createdAt = null; private ?DateTimeInterface $updatedAt = null; private ?DateTimeInterface $deletedAt = null; private Collection $detalleMinutas; public function __construct() { $this->detalleMinutas = new ArrayCollection(); } public function getConcepto(): ?string { return $this->concepto; } public function setConcepto(?string $concepto): static { $this->concepto = $concepto; return $this; } public function getPrecio(): ?float { return $this->precio; } public function setPrecio(?float $precio): static { $this->precio = $precio; 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, DetalleMinutaCompensacionGasto> */ public function getDetalleMinutas(): Collection { return $this->detalleMinutas; } public function addDetalleMinuta(DetalleMinutaCompensacionGasto $detalleMinuta): static { if (!$this->detalleMinutas->contains($detalleMinuta)) { $this->detalleMinutas->add($detalleMinuta); $detalleMinuta->setCompensacionGasto($this); } return $this; } public function removeDetalleMinuta(DetalleMinutaCompensacionGasto $detalleMinuta): static { if ($this->detalleMinutas->removeElement($detalleMinuta)) { // set the owning side to null (unless already changed) if ($detalleMinuta->getCompensacionGasto() === $this) { $detalleMinuta->setCompensacionGasto(null); } } return $this; }}