<?phpnamespace App\Entity;use App\Repository\RFPrecintoRepository;use Doctrine\Common\Collections\ArrayCollection;use Doctrine\Common\Collections\Collection;use Doctrine\DBAL\Types\Types;use Doctrine\ORM\Mapping as ORM;#[ORM\Table(name: 'rf_precinto')]#[ORM\Entity(repositoryClass: RFPrecintoRepository::class)]class RFPrecinto{ #[ORM\Id] #[ORM\GeneratedValue] #[ORM\Column] private ?int $id = null; #[ORM\ManyToOne(inversedBy: 'precintos')] private ?TerEmpresa $empresaFilial = null; #[ORM\ManyToOne(inversedBy: 'precintos')] private ?TerProveedor $proveedor = null; #[ORM\ManyToOne(inversedBy: 'precintos')] private ?ParTipoPrecinto $tipoPrecinto = null; #[ORM\Column] private ?int $cantidad = null; #[ORM\Column(length: 255)] private ?string $serieInicial = null; #[ORM\Column(length: 255)] private ?string $serieFinal = null; #[ORM\ManyToOne(inversedBy: 'precintosCustodia')] private ?TerPersona $responsableCustodia = null; #[ORM\Column(length: 255)] private ?string $certificadoConformidad = null; #[ORM\Column(type: Types::DATETIME_MUTABLE)] private ?\DateTimeInterface $createAt = null; #[ORM\Column(length: 50)] private ?string $createUser = null; #[ORM\Column(type: Types::DATETIME_MUTABLE)] private ?\DateTimeInterface $updateAt = null; #[ORM\Column(length: 50)] private ?string $updateUser = null; #[ORM\ManyToOne(inversedBy: 'precintos')] private ?ParEstado $estado = null; #[ORM\OneToMany(mappedBy: 'precinto', targetEntity: RFPrecintoCodigo::class)] private Collection $precintoCodigos; #[ORM\OneToMany(mappedBy: 'precinto', targetEntity: RFPrecintoSolicitud::class)] private Collection $precintoSolicitud; public function __construct() { $this->precintoCodigos = new ArrayCollection(); $this->precintoSolicitud = new ArrayCollection(); } public function getId(): ?int { return $this->id; } public function getEmpresaFilial(): ?TerEmpresa { return $this->empresaFilial; } public function setEmpresaFilial(?TerEmpresa $empresaFilial): static { $this->empresaFilial = $empresaFilial; return $this; } public function getProveedor(): ?TerProveedor { return $this->proveedor; } public function setProveedor(?TerProveedor $proveedor): static { $this->proveedor = $proveedor; return $this; } public function getTipoPrecinto(): ?ParTipoPrecinto { return $this->tipoPrecinto; } public function setTipoPrecinto(?ParTipoPrecinto $tipoPrecinto): static { $this->tipoPrecinto = $tipoPrecinto; return $this; } public function getCantidad(): ?int { return $this->cantidad; } public function setCantidad(int $cantidad): static { $this->cantidad = $cantidad; return $this; } public function getSerieInicial(): ?string { return $this->serieInicial; } public function setSerieInicial(string $serieInicial): static { $this->serieInicial = $serieInicial; return $this; } public function getSerieFinal(): ?string { return $this->serieFinal; } public function setSerieFinal(string $serieFinal): static { $this->serieFinal = $serieFinal; return $this; } public function getResponsableCustodia(): ?TerPersona { return $this->responsableCustodia; } public function setResponsableCustodia(?TerPersona $responsableCustodia): static { $this->responsableCustodia = $responsableCustodia; return $this; } public function getCertificadoConformidad(): ?string { return $this->certificadoConformidad; } public function setCertificadoConformidad(string $certificadoConformidad): static { $this->certificadoConformidad = $certificadoConformidad; return $this; } public function getCreateAt(): ?\DateTimeInterface { return $this->createAt; } public function setCreateAt(\DateTimeInterface $createAt): static { $this->createAt = $createAt; return $this; } public function getCreateUser(): ?string { return $this->createUser; } public function setCreateUser(string $createUser): static { $this->createUser = $createUser; return $this; } public function getUpdateAt(): ?\DateTimeInterface { return $this->updateAt; } public function setUpdateAt(\DateTimeInterface $updateAt): static { $this->updateAt = $updateAt; return $this; } public function getUpdateUser(): ?string { return $this->updateUser; } public function setUpdateUser(string $updateUser): static { $this->updateUser = $updateUser; return $this; } public function getEstado(): ?ParEstado { return $this->estado; } public function setEstado(?ParEstado $estado): static { $this->estado = $estado; return $this; } /** * @return Collection<int, RFPrecintoCodigo> */ public function getPrecintoCodigos(): Collection { return $this->precintoCodigos; } public function addPrecintoCodigo(RFPrecintoCodigo $precintoCodigo): static { if (!$this->precintoCodigos->contains($precintoCodigo)) { $this->precintoCodigos->add($precintoCodigo); $precintoCodigo->setPrecinto($this); } return $this; } public function removePrecintoCodigo(RFPrecintoCodigo $precintoCodigo): static { if ($this->precintoCodigos->removeElement($precintoCodigo)) { // set the owning side to null (unless already changed) if ($precintoCodigo->getPrecinto() === $this) { $precintoCodigo->setPrecinto(null); } } return $this; } /** * @return Collection<int, RFPrecintoSolicitud> */ public function getPrecintoSolicitud(): Collection { return $this->precintoSolicitud; } public function addPrecintoSolicitud(RFPrecintoSolicitud $precintoSolicitud): static { if (!$this->precintoSolicitud->contains($precintoSolicitud)) { $this->precintoSolicitud->add($precintoSolicitud); $precintoSolicitud->setPrecinto($this); } return $this; } public function removePrecintoSolicitud(RFPrecintoSolicitud $precintoSolicitud): static { if ($this->precintoSolicitud->removeElement($precintoSolicitud)) { // set the owning side to null (unless already changed) if ($precintoSolicitud->getPrecinto() === $this) { $precintoSolicitud->setPrecinto(null); } } return $this; }}