src/Domain/Entity/CompensacionGasto.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 Doctrine\ORM\Mapping as ORM;
  8. use Symfony\Component\Uid\Uuid;
  9. class CompensacionGasto
  10. {
  11.     private ?Uuid $id null;
  12.     private ?string $concepto null;
  13.     private ?float $precio null;
  14.     private ?DateTimeInterface $createdAt null;
  15.     private ?DateTimeInterface $updatedAt null;
  16.     private ?DateTimeInterface $deletedAt null;
  17.     private Collection $detalleMinutas;
  18.     public function __construct()
  19.     {
  20.         $this->detalleMinutas = new ArrayCollection();
  21.     }
  22.     public function getConcepto(): ?string
  23.     {
  24.         return $this->concepto;
  25.     }
  26.     public function setConcepto(?string $concepto): static
  27.     {
  28.         $this->concepto $concepto;
  29.         return $this;
  30.     }
  31.     public function getPrecio(): ?float
  32.     {
  33.         return $this->precio;
  34.     }
  35.     public function setPrecio(?float $precio): static
  36.     {
  37.         $this->precio $precio;
  38.         return $this;
  39.     }
  40.     public function getCreatedAt(): ?\DateTimeInterface
  41.     {
  42.         return $this->createdAt;
  43.     }
  44.     public function setCreatedAt(\DateTimeInterface $createdAt): static
  45.     {
  46.         $this->createdAt $createdAt;
  47.         return $this;
  48.     }
  49.     public function getUpdatedAt(): ?\DateTimeInterface
  50.     {
  51.         return $this->updatedAt;
  52.     }
  53.     public function setUpdatedAt(\DateTimeInterface $updatedAt): static
  54.     {
  55.         $this->updatedAt $updatedAt;
  56.         return $this;
  57.     }
  58.     public function getDeletedAt(): ?\DateTimeInterface
  59.     {
  60.         return $this->deletedAt;
  61.     }
  62.     public function setDeletedAt(?\DateTimeInterface $deletedAt): static
  63.     {
  64.         $this->deletedAt $deletedAt;
  65.         return $this;
  66.     }
  67.     public function getId(): ?Uuid
  68.     {
  69.         return $this->id;
  70.     }
  71.     /**
  72.      * @return Collection<int, DetalleMinutaCompensacionGasto>
  73.      */
  74.     public function getDetalleMinutas(): Collection
  75.     {
  76.         return $this->detalleMinutas;
  77.     }
  78.     public function addDetalleMinuta(DetalleMinutaCompensacionGasto $detalleMinuta): static
  79.     {
  80.         if (!$this->detalleMinutas->contains($detalleMinuta)) {
  81.             $this->detalleMinutas->add($detalleMinuta);
  82.             $detalleMinuta->setCompensacionGasto($this);
  83.         }
  84.         return $this;
  85.     }
  86.     public function removeDetalleMinuta(DetalleMinutaCompensacionGasto $detalleMinuta): static
  87.     {
  88.         if ($this->detalleMinutas->removeElement($detalleMinuta)) {
  89.             // set the owning side to null (unless already changed)
  90.             if ($detalleMinuta->getCompensacionGasto() === $this) {
  91.                 $detalleMinuta->setCompensacionGasto(null);
  92.             }
  93.         }
  94.         return $this;
  95.     }
  96. }