src/Entity/ComProtocoloExportacion.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\ComProtocoloExportacionRepository;
  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\Entity(repositoryClassComProtocoloExportacionRepository::class)]
  9. class ComProtocoloExportacion
  10. {
  11.     #[ORM\Id]
  12.     #[ORM\GeneratedValue]
  13.     #[ORM\Column]
  14.     private ?int $id null;
  15.     #[ORM\Column(typeTypes::DATETIME_MUTABLE)]
  16.     private ?\DateTimeInterface $createAt null;
  17.     #[ORM\Column(length255)]
  18.     private ?string $createUser null;
  19.     #[ORM\Column(typeTypes::DATETIME_MUTABLE)]
  20.     private ?\DateTimeInterface $updateAt null;
  21.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  22.     private ?string $producto null;
  23.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  24.     private ?string $pais null;
  25.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  26.     private ?string $terminoNegociacion null;
  27.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  28.     private ?string $observacionesProtocoloExportacion null;
  29.     #[ORM\ManyToOne(inversedBy'comProtocoloExportacions')]
  30.     private ?TerEmpresaCliente $cliente null;
  31.     #[ORM\Column(length255)]
  32.     private ?string $updateUser null;
  33.     #[ORM\OneToMany(mappedBy'ComProtocoloExportacion'targetEntityComGenerarProtocoloExportacion::class)]
  34.     private Collection $comGenerarProtocoloExportacions;
  35.     public function __construct()
  36.     {
  37.         $this->comGenerarProtocoloExportacions = new ArrayCollection();
  38.     }
  39.     #[ORM\ManyToOne(inversedBy'comProtocoloExportacions')]
  40.     private ?ParEstado $estado null;
  41.     #[ORM\ManyToOne(inversedBy'comProtocoloExportacionConcepto')]
  42.     private ?ParEstado $concepto null;
  43.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  44.     private ?string $observacionesRevisionProtocolo null;
  45.     public function getId(): ?int
  46.     {
  47.         return $this->id;
  48.     }
  49.     public function getCreateAt(): ?\DateTimeInterface
  50.     {
  51.         return $this->createAt;
  52.     }
  53.     public function setCreateAt(\DateTimeInterface $createAt): static
  54.     {
  55.         $this->createAt $createAt;
  56.         return $this;
  57.     }
  58.     public function getCreateUser(): ?string
  59.     {
  60.         return $this->createUser;
  61.     }
  62.     public function setCreateUser(string $createUser): static
  63.     {
  64.         $this->createUser $createUser;
  65.         return $this;
  66.     }
  67.     public function getUpdateAt(): ?\DateTimeInterface
  68.     {
  69.         return $this->updateAt;
  70.     }
  71.     public function setUpdateAt(\DateTimeInterface $updateAt): static
  72.     {
  73.         $this->updateAt $updateAt;
  74.         return $this;
  75.     }
  76.     public function getProducto(): ?string
  77.     {
  78.         return $this->producto;
  79.     }
  80.     public function setProducto(?string $producto): static
  81.     {
  82.         $this->producto $producto;
  83.         return $this;
  84.     }
  85.     public function getPais(): ?string
  86.     {
  87.         return $this->pais;
  88.     }
  89.     public function setPais(?string $pais): static
  90.     {
  91.         $this->pais $pais;
  92.         return $this;
  93.     }
  94.     public function getTerminoNegociacion(): ?string
  95.     {
  96.         return $this->terminoNegociacion;
  97.     }
  98.     public function setTerminoNegociacion(?string $terminoNegociacion): static
  99.     {
  100.         $this->terminoNegociacion $terminoNegociacion;
  101.         return $this;
  102.     }
  103.     public function getObservacionesProtocoloExportacion(): ?string
  104.     {
  105.         return $this->observacionesProtocoloExportacion;
  106.     }
  107.     public function setObservacionesProtocoloExportacion(?string $observacionesProtocoloExportacion): static
  108.     {
  109.         $this->observacionesProtocoloExportacion $observacionesProtocoloExportacion;
  110.         return $this;
  111.     }
  112.     public function getCliente(): ?TerEmpresaCliente
  113.     {
  114.         return $this->cliente;
  115.     }
  116.     public function setCliente(?TerEmpresaCliente $cliente): static
  117.     {
  118.         $this->cliente $cliente;
  119.         return $this;
  120.     }
  121.     public function getUpdateUser(): ?string
  122.     {
  123.         return $this->updateUser;
  124.     }
  125.     public function setUpdateUser(string $updateUser): static
  126.     {
  127.         $this->updateUser $updateUser;
  128.         return $this;
  129.     }
  130.     /**
  131.      * @return Collection<int, ComGenerarProtocoloExportacion>
  132.      */
  133.     public function getComGenerarProtocoloExportacions(): Collection
  134.     {
  135.         return $this->comGenerarProtocoloExportacions;
  136.     }
  137.     public function addComGenerarProtocoloExportacion(ComGenerarProtocoloExportacion $comGenerarProtocoloExportacion): static
  138.     {
  139.         if (!$this->comGenerarProtocoloExportacions->contains($comGenerarProtocoloExportacion)) {
  140.             $this->comGenerarProtocoloExportacions->add($comGenerarProtocoloExportacion);
  141.             $comGenerarProtocoloExportacion->setComProtocoloExportacion($this);
  142.         }
  143.         return $this;
  144.     }
  145.     public function removeComGenerarProtocoloExportacion(ComGenerarProtocoloExportacion $comGenerarProtocoloExportacion): static
  146.     {
  147.         if ($this->comGenerarProtocoloExportacions->removeElement($comGenerarProtocoloExportacion)) {
  148.             // set the owning side to null (unless already changed)
  149.             if ($comGenerarProtocoloExportacion->getComProtocoloExportacion() === $this) {
  150.                 $comGenerarProtocoloExportacion->setComProtocoloExportacion(null);
  151.             }
  152.         }
  153.         return $this;
  154.     }
  155.     public function getEstado(): ?ParEstado
  156.     {
  157.         return $this->estado;
  158.     }
  159.     public function setEstado(?ParEstado $estado): static
  160.     {
  161.         $this->estado $estado;
  162.         return $this;
  163.     }
  164.     public function getConcepto(): ?ParEstado
  165.     {
  166.         return $this->concepto;
  167.     }
  168.     public function setConcepto(?ParEstado $concepto): static
  169.     {
  170.         $this->concepto $concepto;
  171.         return $this;
  172.     }
  173.     public function getObservacionesRevisionProtocolo(): ?string
  174.     {
  175.         return $this->observacionesRevisionProtocolo;
  176.     }
  177.     public function setObservacionesRevisionProtocolo(?string $observacionesRevisionProtocolo): static
  178.     {
  179.         $this->observacionesRevisionProtocolo $observacionesRevisionProtocolo;
  180.         return $this;
  181.     }
  182. }