<?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;use Symfony\Component\Validator\Constraints as Assert;class SistemaRetribucion{ private ?Uuid $id = null; /** * @var string|null * @Assert\NotBlank(message="not_blank") */ private ?string $concepto; /** * @var float|null * @Assert\NotBlank(message="not_blank") */ private ?float $precio; /** * @var DateTimeInterface|null * @Assert\NotBlank(message="not_blank") */ private ?DateTimeInterface $fechaVigenciaInicio; /** * @var DateTimeInterface|null * @Assert\NotBlank(message="not_blank") */ private ?DateTimeInterface $fechaVigenciaFin; private ?bool $active; private ?DateTimeInterface $createdAt = null; private ?DateTimeInterface $updatedAt = null; private ?DateTimeInterface $deletedAt = null; private Collection $detalleMinutas; public function __construct() { $this->concepto = null; $this->precio = null; $this->fechaVigenciaInicio = null; $this->fechaVigenciaFin = null; $this->detalleMinutas = new ArrayCollection(); } public function __toString(): string { return $this->getConcepto()??'---'; } 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 getFechaVigenciaInicio(): ?DateTimeInterface { return $this->fechaVigenciaInicio; } public function setFechaVigenciaInicio(?DateTimeInterface $fechaVigenciaInicio): static { $this->fechaVigenciaInicio = $fechaVigenciaInicio; return $this; } public function getFechaVigenciaFin(): ?DateTimeInterface { return $this->fechaVigenciaFin; } public function setFechaVigenciaFin(?DateTimeInterface $fechaVigenciaFin): static { $this->fechaVigenciaFin = $fechaVigenciaFin; return $this; } public function isActive(): ?bool { return $this->active; } public function setActive(?bool $active): static { $this->active = $active; 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, DetalleMinutaSistemaRetribucion> */ public function getDetalleMinutas(): Collection { return $this->detalleMinutas; } public function addDetalleMinuta(DetalleMinutaSistemaRetribucion $detalleMinuta): static { if (!$this->detalleMinutas->contains($detalleMinuta)) { $this->detalleMinutas->add($detalleMinuta); $detalleMinuta->setSistemaRetribucion($this); } return $this; } public function removeDetalleMinuta(DetalleMinutaSistemaRetribucion $detalleMinuta): static { if ($this->detalleMinutas->removeElement($detalleMinuta)) { // set the owning side to null (unless already changed) if ($detalleMinuta->getSistemaRetribucion() === $this) { $detalleMinuta->setSistemaRetribucion(null); } } return $this; }}