src/Entity/ComMapaComunicaciones.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\ComMapaComunicacionesRepository;
  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(repositoryClassComMapaComunicacionesRepository::class)]
  9. class ComMapaComunicaciones
  10. {
  11.     #[ORM\Id]
  12.     #[ORM\GeneratedValue]
  13.     #[ORM\Column]
  14.     private ?int $id null;
  15.     #[ORM\Column(typeTypes::DATETIME_MUTABLE)]
  16.     private ?\DateTimeInterface $fechaEmision null;
  17.     #[ORM\ManyToOne(inversedBy'comMapaComunicaciones')]
  18.     private ?ComInformacionContacto $dirigidoA null;
  19.     #[ORM\OneToMany(mappedBy'comMapaComunicaciones'targetEntityComImportaciones::class)]
  20.     private Collection $importaciones;
  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\ManyToOne(inversedBy'comMapaComunicaciones')]
  30.     private ?TerEmpresaCliente $terEmpresaCliente null;
  31.     #[ORM\OneToMany(mappedBy'comMapaComunicaciones'targetEntityComComex::class)]
  32.     private Collection $comComex;
  33.     #[ORM\OneToMany(mappedBy'comMapaComunicaciones'targetEntityComOperacionesBodega::class)]
  34.     private Collection $ComOperacionesBodega;
  35.     #[ORM\OneToMany(mappedBy'comMapaComunicaciones'targetEntityComComercial::class)]
  36.     private Collection $comComercial;
  37.     #[ORM\OneToMany(mappedBy'comMapaComunicaciones'targetEntityComFinanzas::class)]
  38.     private Collection $comFinanzas;
  39.     #[ORM\OneToMany(mappedBy'comMapaComunicaciones'targetEntityComGerencia::class)]
  40.     private Collection $comGerencia;
  41.     public function __construct()
  42.     {
  43.         $this->importaciones = new ArrayCollection();
  44.         $this->comComex = new ArrayCollection();
  45.         $this->ComOperacionesBodega = new ArrayCollection();
  46.         $this->comComercial = new ArrayCollection();
  47.         $this->comFinanzas = new ArrayCollection();
  48.         $this->comGerencia = new ArrayCollection();
  49.     }
  50.     public function getId(): ?int
  51.     {
  52.         return $this->id;
  53.     }
  54.     public function getFechaEmision(): ?\DateTimeInterface
  55.     {
  56.         return $this->fechaEmision;
  57.     }
  58.     public function setFechaEmision(\DateTimeInterface $fechaEmision): static
  59.     {
  60.         $this->fechaEmision $fechaEmision;
  61.         return $this;
  62.     }
  63.     public function getDirigidoA(): ?ComInformacionContacto
  64.     {
  65.         return $this->dirigidoA;
  66.     }
  67.     public function setDirigidoA(?ComInformacionContacto $dirigidoA): static
  68.     {
  69.         $this->dirigidoA $dirigidoA;
  70.         return $this;
  71.     }
  72.     /**
  73.      * @return Collection<int, ComImportaciones>
  74.      */
  75.     public function getImportaciones(): Collection
  76.     {
  77.         return $this->importaciones;
  78.     }
  79.     public function addImportacione(ComImportaciones $importacione): static
  80.     {
  81.         if (!$this->importaciones->contains($importacione)) {
  82.             $this->importaciones->add($importacione);
  83.             $importacione->setComMapaComunicaciones($this);
  84.         }
  85.         return $this;
  86.     }
  87.     public function removeImportacione(ComImportaciones $importacione): static
  88.     {
  89.         if ($this->importaciones->removeElement($importacione)) {
  90.             // set the owning side to null (unless already changed)
  91.             if ($importacione->getComMapaComunicaciones() === $this) {
  92.                 $importacione->setComMapaComunicaciones(null);
  93.             }
  94.         }
  95.         return $this;
  96.     }
  97.     public function getCreateAt(): ?\DateTimeInterface
  98.     {
  99.         return $this->createAt;
  100.     }
  101.     public function setCreateAt(\DateTimeInterface $createAt): static
  102.     {
  103.         $this->createAt $createAt;
  104.         return $this;
  105.     }
  106.     public function getCreateUser(): ?string
  107.     {
  108.         return $this->createUser;
  109.     }
  110.     public function setCreateUser(string $createUser): static
  111.     {
  112.         $this->createUser $createUser;
  113.         return $this;
  114.     }
  115.     public function getUpdateAt(): ?\DateTimeInterface
  116.     {
  117.         return $this->updateAt;
  118.     }
  119.     public function setUpdateAt(\DateTimeInterface $updateAt): static
  120.     {
  121.         $this->updateAt $updateAt;
  122.         return $this;
  123.     }
  124.     public function getUpdateUser(): ?string
  125.     {
  126.         return $this->updateUser;
  127.     }
  128.     public function setUpdateUser(string $updateUser): static
  129.     {
  130.         $this->updateUser $updateUser;
  131.         return $this;
  132.     }
  133.     public function getTerEmpresaCliente(): ?TerEmpresaCliente
  134.     {
  135.         return $this->terEmpresaCliente;
  136.     }
  137.     public function setTerEmpresaCliente(?TerEmpresaCliente $terEmpresaCliente): static
  138.     {
  139.         $this->terEmpresaCliente $terEmpresaCliente;
  140.         return $this;
  141.     }
  142.     /**
  143.      * @return Collection<int, ComComex>
  144.      */
  145.     public function getComComex(): Collection
  146.     {
  147.         return $this->comComex;
  148.     }
  149.     public function addComComex(ComComex $comComex): static
  150.     {
  151.         if (!$this->comComex->contains($comComex)) {
  152.             $this->comComex->add($comComex);
  153.             $comComex->setComMapaComunicaciones($this);
  154.         }
  155.         return $this;
  156.     }
  157.     public function removeComComex(ComComex $comComex): static
  158.     {
  159.         if ($this->comComex->removeElement($comComex)) {
  160.             // set the owning side to null (unless already changed)
  161.             if ($comComex->getComMapaComunicaciones() === $this) {
  162.                 $comComex->setComMapaComunicaciones(null);
  163.             }
  164.         }
  165.         return $this;
  166.     }
  167.     /**
  168.      * @return Collection<int, ComOperacionesBodega>
  169.      */
  170.     public function getComOperacionesBodega(): Collection
  171.     {
  172.         return $this->ComOperacionesBodega;
  173.     }
  174.     public function addComOperacionesBodega(ComOperacionesBodega $comOperacionesBodega): static
  175.     {
  176.         if (!$this->ComOperacionesBodega->contains($comOperacionesBodega)) {
  177.             $this->ComOperacionesBodega->add($comOperacionesBodega);
  178.             $comOperacionesBodega->setComMapaComunicaciones($this);
  179.         }
  180.         return $this;
  181.     }
  182.     public function removeComOperacionesBodega(ComOperacionesBodega $comOperacionesBodega): static
  183.     {
  184.         if ($this->ComOperacionesBodega->removeElement($comOperacionesBodega)) {
  185.             // set the owning side to null (unless already changed)
  186.             if ($comOperacionesBodega->getComMapaComunicaciones() === $this) {
  187.                 $comOperacionesBodega->setComMapaComunicaciones(null);
  188.             }
  189.         }
  190.         return $this;
  191.     }
  192.     /**
  193.      * @return Collection<int, ComComercial>
  194.      */
  195.     public function getComComercial(): Collection
  196.     {
  197.         return $this->comComercial;
  198.     }
  199.     public function addComComercial(ComComercial $comComercial): static
  200.     {
  201.         if (!$this->comComercial->contains($comComercial)) {
  202.             $this->comComercial->add($comComercial);
  203.             $comComercial->setComMapaComunicaciones($this);
  204.         }
  205.         return $this;
  206.     }
  207.     public function removeComComercial(ComComercial $comComercial): static
  208.     {
  209.         if ($this->comComercial->removeElement($comComercial)) {
  210.             // set the owning side to null (unless already changed)
  211.             if ($comComercial->getComMapaComunicaciones() === $this) {
  212.                 $comComercial->setComMapaComunicaciones(null);
  213.             }
  214.         }
  215.         return $this;
  216.     }
  217.     /**
  218.      * @return Collection<int, ComFinanzas>
  219.      */
  220.     public function getComFinanzas(): Collection
  221.     {
  222.         return $this->comFinanzas;
  223.     }
  224.     public function addComFinanza(ComFinanzas $comFinanza): static
  225.     {
  226.         if (!$this->comFinanzas->contains($comFinanza)) {
  227.             $this->comFinanzas->add($comFinanza);
  228.             $comFinanza->setComMapaComunicaciones($this);
  229.         }
  230.         return $this;
  231.     }
  232.     public function removeComFinanza(ComFinanzas $comFinanza): static
  233.     {
  234.         if ($this->comFinanzas->removeElement($comFinanza)) {
  235.             // set the owning side to null (unless already changed)
  236.             if ($comFinanza->getComMapaComunicaciones() === $this) {
  237.                 $comFinanza->setComMapaComunicaciones(null);
  238.             }
  239.         }
  240.         return $this;
  241.     }
  242.     /**
  243.      * @return Collection<int, ComGerencia>
  244.      */
  245.     public function getComGerencia(): Collection
  246.     {
  247.         return $this->comGerencia;
  248.     }
  249.     public function addComGerencium(ComGerencia $comGerencium): static
  250.     {
  251.         if (!$this->comGerencia->contains($comGerencium)) {
  252.             $this->comGerencia->add($comGerencium);
  253.             $comGerencium->setComMapaComunicaciones($this);
  254.         }
  255.         return $this;
  256.     }
  257.     public function removeComGerencium(ComGerencia $comGerencium): static
  258.     {
  259.         if ($this->comGerencia->removeElement($comGerencium)) {
  260.             // set the owning side to null (unless already changed)
  261.             if ($comGerencium->getComMapaComunicaciones() === $this) {
  262.                 $comGerencium->setComMapaComunicaciones(null);
  263.             }
  264.         }
  265.         return $this;
  266.     }
  267. }