src/Entity/ComCasoComex.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\ComCasoComexRepository;
  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(repositoryClassComCasoComexRepository::class)]
  9. class ComCasoComex
  10. {
  11.     #[ORM\Id]
  12.     #[ORM\GeneratedValue]
  13.     #[ORM\Column]
  14.     private ?int $id null;
  15.     #[ORM\Column(length255nullabletrue)]
  16.     private ?string $observacionesAdicionales null;
  17.     #[ORM\OneToMany(mappedBy'comCasoComex'targetEntityComDocumentosSoporteCasoComex::class)]
  18.     private Collection $documentosSoporteCasoComex;
  19.     #[ORM\ManyToOne(inversedBy'comCasoComex')]
  20.     private ?TerEmpresaCliente $terEmpresaCliente null;
  21.     #[ORM\Column(typeTypes::DATETIME_MUTABLE)]
  22.     private ?\DateTimeInterface $createAt null;
  23.     #[ORM\Column(length255)]
  24.     private ?string $createUser null;
  25.     #[ORM\Column(typeTypes::DATETIME_MUTABLE)]
  26.     private ?\DateTimeInterface $updateAt null;
  27.     #[ORM\Column(length255)]
  28.     private ?string $updateUser null;
  29.     #[ORM\OneToMany(mappedBy'comCasoComex'targetEntityComAsignarComex::class)]
  30.     private Collection $asignarComex;
  31.     public function __construct()
  32.     {
  33.         $this->documentosSoporteCasoComex = new ArrayCollection();
  34.         $this->asignarComex = new ArrayCollection();
  35.     }
  36.     public function getId(): ?int
  37.     {
  38.         return $this->id;
  39.     }
  40.     public function getObservacionesAdicionales(): ?string
  41.     {
  42.         return $this->observacionesAdicionales;
  43.     }
  44.     public function setObservacionesAdicionales(?string $observacionesAdicionales): static
  45.     {
  46.         $this->observacionesAdicionales $observacionesAdicionales;
  47.         return $this;
  48.     }
  49.     /**
  50.      * @return Collection<int, ComDocumentosSoporteCasoComex>
  51.      */
  52.     public function getDocumentosSoporteCasoComex(): Collection
  53.     {
  54.         return $this->documentosSoporteCasoComex;
  55.     }
  56.     public function addDocumentosSoporteCasoComex(ComDocumentosSoporteCasoComex $documentosSoporteCasoComex): static
  57.     {
  58.         if (!$this->documentosSoporteCasoComex->contains($documentosSoporteCasoComex)) {
  59.             $this->documentosSoporteCasoComex->add($documentosSoporteCasoComex);
  60.             $documentosSoporteCasoComex->setComCasoComex($this);
  61.         }
  62.         return $this;
  63.     }
  64.     public function removeDocumentosSoporteCasoComex(ComDocumentosSoporteCasoComex $documentosSoporteCasoComex): static
  65.     {
  66.         if ($this->documentosSoporteCasoComex->removeElement($documentosSoporteCasoComex)) {
  67.             // set the owning side to null (unless already changed)
  68.             if ($documentosSoporteCasoComex->getComCasoComex() === $this) {
  69.                 $documentosSoporteCasoComex->setComCasoComex(null);
  70.             }
  71.         }
  72.         return $this;
  73.     }
  74.     public function getTerEmpresaCliente(): ?TerEmpresaCliente
  75.     {
  76.         return $this->terEmpresaCliente;
  77.     }
  78.     public function setTerEmpresaCliente(?TerEmpresaCliente $terEmpresaCliente): static
  79.     {
  80.         $this->terEmpresaCliente $terEmpresaCliente;
  81.         return $this;
  82.     }
  83.     public function getCreateAt(): ?\DateTimeInterface
  84.     {
  85.         return $this->createAt;
  86.     }
  87.     public function setCreateAt(\DateTimeInterface $createAt): static
  88.     {
  89.         $this->createAt $createAt;
  90.         return $this;
  91.     }
  92.     public function getCreateUser(): ?string
  93.     {
  94.         return $this->createUser;
  95.     }
  96.     public function setCreateUser(string $createUser): static
  97.     {
  98.         $this->createUser $createUser;
  99.         return $this;
  100.     }
  101.     public function getUpdateAt(): ?\DateTimeInterface
  102.     {
  103.         return $this->updateAt;
  104.     }
  105.     public function setUpdateAt(\DateTimeInterface $updateAt): static
  106.     {
  107.         $this->updateAt $updateAt;
  108.         return $this;
  109.     }
  110.     public function getUpdateUser(): ?string
  111.     {
  112.         return $this->updateUser;
  113.     }
  114.     public function setUpdateUser(string $updateUser): static
  115.     {
  116.         $this->updateUser $updateUser;
  117.         return $this;
  118.     }
  119.     /**
  120.      * @return Collection<int, ComAsignarComex>
  121.      */
  122.     public function getAsignarComex(): Collection
  123.     {
  124.         return $this->asignarComex;
  125.     }
  126.     public function addAsignarComex(ComAsignarComex $asignarComex): static
  127.     {
  128.         if (!$this->asignarComex->contains($asignarComex)) {
  129.             $this->asignarComex->add($asignarComex);
  130.             $asignarComex->setComCasoComex($this);
  131.         }
  132.         return $this;
  133.     }
  134.     public function removeAsignarComex(ComAsignarComex $asignarComex): static
  135.     {
  136.         if ($this->asignarComex->removeElement($asignarComex)) {
  137.             // set the owning side to null (unless already changed)
  138.             if ($asignarComex->getComCasoComex() === $this) {
  139.                 $asignarComex->setComCasoComex(null);
  140.             }
  141.         }
  142.         return $this;
  143.     }
  144. }