src/Entity/RFPrecinto.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\RFPrecintoRepository;
  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. #[ORM\Table(name'rf_precinto')]
  9. #[ORM\Entity(repositoryClassRFPrecintoRepository::class)]
  10. class RFPrecinto
  11. {
  12.     #[ORM\Id]
  13.     #[ORM\GeneratedValue]
  14.     #[ORM\Column]
  15.     private ?int $id null;
  16.     #[ORM\ManyToOne(inversedBy'precintos')]
  17.     private ?TerEmpresa $empresaFilial null;
  18.     #[ORM\ManyToOne(inversedBy'precintos')]
  19.     private ?TerProveedor $proveedor null;
  20.     #[ORM\ManyToOne(inversedBy'precintos')]
  21.     private ?ParTipoPrecinto $tipoPrecinto null;
  22.     #[ORM\Column]
  23.     private ?int $cantidad null;
  24.     #[ORM\Column(length255)]
  25.     private ?string $serieInicial null;
  26.     #[ORM\Column(length255)]
  27.     private ?string $serieFinal null;
  28.     #[ORM\ManyToOne(inversedBy'precintosCustodia')]
  29.     private ?TerPersona $responsableCustodia null;
  30.     #[ORM\Column(length255)]
  31.     private ?string $certificadoConformidad null;
  32.     #[ORM\Column(typeTypes::DATETIME_MUTABLE)]
  33.     private ?\DateTimeInterface $createAt null;
  34.     #[ORM\Column(length50)]
  35.     private ?string $createUser null;
  36.     #[ORM\Column(typeTypes::DATETIME_MUTABLE)]
  37.     private ?\DateTimeInterface $updateAt null;
  38.     #[ORM\Column(length50)]
  39.     private ?string $updateUser null;
  40.     #[ORM\ManyToOne(inversedBy'precintos')]
  41.     private ?ParEstado $estado null;
  42.     #[ORM\OneToMany(mappedBy'precinto'targetEntityRFPrecintoCodigo::class)]
  43.     private Collection $precintoCodigos;
  44.     #[ORM\OneToMany(mappedBy'precinto'targetEntityRFPrecintoSolicitud::class)]
  45.     private Collection $precintoSolicitud;
  46.     public function __construct()
  47.     {
  48.         $this->precintoCodigos = new ArrayCollection();
  49.         $this->precintoSolicitud = new ArrayCollection();
  50.     }
  51.     public function getId(): ?int
  52.     {
  53.         return $this->id;
  54.     }
  55.     public function getEmpresaFilial(): ?TerEmpresa
  56.     {
  57.         return $this->empresaFilial;
  58.     }
  59.     public function setEmpresaFilial(?TerEmpresa $empresaFilial): static
  60.     {
  61.         $this->empresaFilial $empresaFilial;
  62.         return $this;
  63.     }
  64.     public function getProveedor(): ?TerProveedor
  65.     {
  66.         return $this->proveedor;
  67.     }
  68.     public function setProveedor(?TerProveedor $proveedor): static
  69.     {
  70.         $this->proveedor $proveedor;
  71.         return $this;
  72.     }
  73.     public function getTipoPrecinto(): ?ParTipoPrecinto
  74.     {
  75.         return $this->tipoPrecinto;
  76.     }
  77.     public function setTipoPrecinto(?ParTipoPrecinto $tipoPrecinto): static
  78.     {
  79.         $this->tipoPrecinto $tipoPrecinto;
  80.         return $this;
  81.     }
  82.     public function getCantidad(): ?int
  83.     {
  84.         return $this->cantidad;
  85.     }
  86.     public function setCantidad(int $cantidad): static
  87.     {
  88.         $this->cantidad $cantidad;
  89.         return $this;
  90.     }
  91.     public function getSerieInicial(): ?string
  92.     {
  93.         return $this->serieInicial;
  94.     }
  95.     public function setSerieInicial(string $serieInicial): static
  96.     {
  97.         $this->serieInicial $serieInicial;
  98.         return $this;
  99.     }
  100.     public function getSerieFinal(): ?string
  101.     {
  102.         return $this->serieFinal;
  103.     }
  104.     public function setSerieFinal(string $serieFinal): static
  105.     {
  106.         $this->serieFinal $serieFinal;
  107.         return $this;
  108.     }
  109.     public function getResponsableCustodia(): ?TerPersona
  110.     {
  111.         return $this->responsableCustodia;
  112.     }
  113.     public function setResponsableCustodia(?TerPersona $responsableCustodia): static
  114.     {
  115.         $this->responsableCustodia $responsableCustodia;
  116.         return $this;
  117.     }
  118.     public function getCertificadoConformidad(): ?string
  119.     {
  120.         return $this->certificadoConformidad;
  121.     }
  122.     public function setCertificadoConformidad(string $certificadoConformidad): static
  123.     {
  124.         $this->certificadoConformidad $certificadoConformidad;
  125.         return $this;
  126.     }
  127.     public function getCreateAt(): ?\DateTimeInterface
  128.     {
  129.         return $this->createAt;
  130.     }
  131.     public function setCreateAt(\DateTimeInterface $createAt): static
  132.     {
  133.         $this->createAt $createAt;
  134.         return $this;
  135.     }
  136.     public function getCreateUser(): ?string
  137.     {
  138.         return $this->createUser;
  139.     }
  140.     public function setCreateUser(string $createUser): static
  141.     {
  142.         $this->createUser $createUser;
  143.         return $this;
  144.     }
  145.     public function getUpdateAt(): ?\DateTimeInterface
  146.     {
  147.         return $this->updateAt;
  148.     }
  149.     public function setUpdateAt(\DateTimeInterface $updateAt): static
  150.     {
  151.         $this->updateAt $updateAt;
  152.         return $this;
  153.     }
  154.     public function getUpdateUser(): ?string
  155.     {
  156.         return $this->updateUser;
  157.     }
  158.     public function setUpdateUser(string $updateUser): static
  159.     {
  160.         $this->updateUser $updateUser;
  161.         return $this;
  162.     }
  163.     public function getEstado(): ?ParEstado
  164.     {
  165.         return $this->estado;
  166.     }
  167.     public function setEstado(?ParEstado $estado): static
  168.     {
  169.         $this->estado $estado;
  170.         return $this;
  171.     }
  172.     /**
  173.      * @return Collection<int, RFPrecintoCodigo>
  174.      */
  175.     public function getPrecintoCodigos(): Collection
  176.     {
  177.         return $this->precintoCodigos;
  178.     }
  179.     public function addPrecintoCodigo(RFPrecintoCodigo $precintoCodigo): static
  180.     {
  181.         if (!$this->precintoCodigos->contains($precintoCodigo)) {
  182.             $this->precintoCodigos->add($precintoCodigo);
  183.             $precintoCodigo->setPrecinto($this);
  184.         }
  185.         return $this;
  186.     }
  187.     public function removePrecintoCodigo(RFPrecintoCodigo $precintoCodigo): static
  188.     {
  189.         if ($this->precintoCodigos->removeElement($precintoCodigo)) {
  190.             // set the owning side to null (unless already changed)
  191.             if ($precintoCodigo->getPrecinto() === $this) {
  192.                 $precintoCodigo->setPrecinto(null);
  193.             }
  194.         }
  195.         return $this;
  196.     }
  197.     /**
  198.      * @return Collection<int, RFPrecintoSolicitud>
  199.      */
  200.     public function getPrecintoSolicitud(): Collection
  201.     {
  202.         return $this->precintoSolicitud;
  203.     }
  204.     public function addPrecintoSolicitud(RFPrecintoSolicitud $precintoSolicitud): static
  205.     {
  206.         if (!$this->precintoSolicitud->contains($precintoSolicitud)) {
  207.             $this->precintoSolicitud->add($precintoSolicitud);
  208.             $precintoSolicitud->setPrecinto($this);
  209.         }
  210.         return $this;
  211.     }
  212.     public function removePrecintoSolicitud(RFPrecintoSolicitud $precintoSolicitud): static
  213.     {
  214.         if ($this->precintoSolicitud->removeElement($precintoSolicitud)) {
  215.             // set the owning side to null (unless already changed)
  216.             if ($precintoSolicitud->getPrecinto() === $this) {
  217.                 $precintoSolicitud->setPrecinto(null);
  218.             }
  219.         }
  220.         return $this;
  221.     }
  222. }