<?phpnamespace App\Domain\Entity;use DateTimeInterface;use Doctrine\Common\Collections\ArrayCollection;use Doctrine\Common\Collections\Collection;use Doctrine\DBAL\Types\Types;use Symfony\Component\Uid\Uuid;use Symfony\Component\Validator\Constraints as Assert;class Minuta{ private ?Uuid $id = null; private ?Preco $preco = null; private ?Expediente $expediente = null; private ?DateTimeInterface $fecha = null; private ?float $total = null; private Collection $detalleMinutas; private ?DateTimeInterface $createdAt = null; private ?DateTimeInterface $updatedAt = null; private ?DateTimeInterface $deletedAt = null; public function __construct() { $this->detalleMinutas = new ArrayCollection(); } public function getFecha(): ?\DateTimeInterface { return $this->fecha; } public function setFecha(?\DateTimeInterface $fecha): static { $this->fecha = $fecha; return $this; } public function getTotal(): ?float { return $this->total; } public function setTotal(?float $total): static { $this->total = $total; 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(): ?int { return $this->id; } /** * @return Collection<int, DetalleMinuta> */ public function getDetalleMinutas(): Collection { return $this->detalleMinutas; } public function addDetalleMinuta(DetalleMinuta $detalleMinuta): static { if (!$this->detalleMinutas->contains($detalleMinuta)) { $this->detalleMinutas->add($detalleMinuta); $detalleMinuta->setMinuta($this); } return $this; } public function removeDetalleMinuta(DetalleMinuta $detalleMinuta): static { if ($this->detalleMinutas->removeElement($detalleMinuta)) { // set the owning side to null (unless already changed) if ($detalleMinuta->getMinuta() === $this) { $detalleMinuta->setMinuta(null); } } return $this; } public function getPreco(): ?Preco { return $this->preco; } public function setPreco(?Preco $preco): static { $this->preco = $preco; return $this; } public function getExpediente(): ?Expediente { return $this->expediente; } public function setExpediente(?Expediente $expediente): static { $this->expediente = $expediente; return $this; }}