src/Domain/Entity/Minuta.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Domain\Entity;
  3. use DateTimeInterface;
  4. use Doctrine\Common\Collections\ArrayCollection;
  5. use Doctrine\Common\Collections\Collection;
  6. use Doctrine\DBAL\Types\Types;
  7. use Symfony\Component\Uid\Uuid;
  8. use Symfony\Component\Validator\Constraints as Assert;
  9. class Minuta
  10. {
  11.     private ?Uuid $id null;
  12.     private ?Preco $preco null;
  13.     private ?Expediente $expediente null;
  14.     private ?DateTimeInterface $fecha null;
  15.     private ?float $total null;
  16.     private Collection $detalleMinutas;
  17.     private ?DateTimeInterface $createdAt null;
  18.     private ?DateTimeInterface $updatedAt null;
  19.     private ?DateTimeInterface $deletedAt null;
  20.     public function __construct()
  21.     {
  22.         $this->detalleMinutas = new ArrayCollection();
  23.     }
  24.     public function getFecha(): ?\DateTimeInterface
  25.     {
  26.         return $this->fecha;
  27.     }
  28.     public function setFecha(?\DateTimeInterface $fecha): static
  29.     {
  30.         $this->fecha $fecha;
  31.         return $this;
  32.     }
  33.     public function getTotal(): ?float
  34.     {
  35.         return $this->total;
  36.     }
  37.     public function setTotal(?float $total): static
  38.     {
  39.         $this->total $total;
  40.         return $this;
  41.     }
  42.     public function getCreatedAt(): ?\DateTimeInterface
  43.     {
  44.         return $this->createdAt;
  45.     }
  46.     public function setCreatedAt(\DateTimeInterface $createdAt): static
  47.     {
  48.         $this->createdAt $createdAt;
  49.         return $this;
  50.     }
  51.     public function getUpdatedAt(): ?\DateTimeInterface
  52.     {
  53.         return $this->updatedAt;
  54.     }
  55.     public function setUpdatedAt(\DateTimeInterface $updatedAt): static
  56.     {
  57.         $this->updatedAt $updatedAt;
  58.         return $this;
  59.     }
  60.     public function getDeletedAt(): ?\DateTimeInterface
  61.     {
  62.         return $this->deletedAt;
  63.     }
  64.     public function setDeletedAt(?\DateTimeInterface $deletedAt): static
  65.     {
  66.         $this->deletedAt $deletedAt;
  67.         return $this;
  68.     }
  69.     public function getId(): ?int
  70.     {
  71.         return $this->id;
  72.     }
  73.     /**
  74.      * @return Collection<int, DetalleMinuta>
  75.      */
  76.     public function getDetalleMinutas(): Collection
  77.     {
  78.         return $this->detalleMinutas;
  79.     }
  80.     public function addDetalleMinuta(DetalleMinuta $detalleMinuta): static
  81.     {
  82.         if (!$this->detalleMinutas->contains($detalleMinuta)) {
  83.             $this->detalleMinutas->add($detalleMinuta);
  84.             $detalleMinuta->setMinuta($this);
  85.         }
  86.         return $this;
  87.     }
  88.     public function removeDetalleMinuta(DetalleMinuta $detalleMinuta): static
  89.     {
  90.         if ($this->detalleMinutas->removeElement($detalleMinuta)) {
  91.             // set the owning side to null (unless already changed)
  92.             if ($detalleMinuta->getMinuta() === $this) {
  93.                 $detalleMinuta->setMinuta(null);
  94.             }
  95.         }
  96.         return $this;
  97.     }
  98.     public function getPreco(): ?Preco
  99.     {
  100.         return $this->preco;
  101.     }
  102.     public function setPreco(?Preco $preco): static
  103.     {
  104.         $this->preco $preco;
  105.         return $this;
  106.     }
  107.     public function getExpediente(): ?Expediente
  108.     {
  109.         return $this->expediente;
  110.     }
  111.     public function setExpediente(?Expediente $expediente): static
  112.     {
  113.         $this->expediente $expediente;
  114.         return $this;
  115.     }
  116. }