<?php
namespace App\Entity;
use App\Repository\ComMapaComunicacionesRepository;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: ComMapaComunicacionesRepository::class)]
class ComMapaComunicaciones
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
private ?int $id = null;
#[ORM\Column(type: Types::DATETIME_MUTABLE)]
private ?\DateTimeInterface $fechaEmision = null;
#[ORM\ManyToOne(inversedBy: 'comMapaComunicaciones')]
private ?ComInformacionContacto $dirigidoA = null;
#[ORM\OneToMany(mappedBy: 'comMapaComunicaciones', targetEntity: ComImportaciones::class)]
private Collection $importaciones;
#[ORM\Column(type: Types::DATETIME_MUTABLE)]
private ?\DateTimeInterface $createAt = null;
#[ORM\Column(length: 255)]
private ?string $createUser = null;
#[ORM\Column(type: Types::DATETIME_MUTABLE)]
private ?\DateTimeInterface $updateAt = null;
#[ORM\Column(length: 255)]
private ?string $updateUser = null;
#[ORM\ManyToOne(inversedBy: 'comMapaComunicaciones')]
private ?TerEmpresaCliente $terEmpresaCliente = null;
#[ORM\OneToMany(mappedBy: 'comMapaComunicaciones', targetEntity: ComComex::class)]
private Collection $comComex;
#[ORM\OneToMany(mappedBy: 'comMapaComunicaciones', targetEntity: ComOperacionesBodega::class)]
private Collection $ComOperacionesBodega;
#[ORM\OneToMany(mappedBy: 'comMapaComunicaciones', targetEntity: ComComercial::class)]
private Collection $comComercial;
#[ORM\OneToMany(mappedBy: 'comMapaComunicaciones', targetEntity: ComFinanzas::class)]
private Collection $comFinanzas;
#[ORM\OneToMany(mappedBy: 'comMapaComunicaciones', targetEntity: ComGerencia::class)]
private Collection $comGerencia;
public function __construct()
{
$this->importaciones = new ArrayCollection();
$this->comComex = new ArrayCollection();
$this->ComOperacionesBodega = new ArrayCollection();
$this->comComercial = new ArrayCollection();
$this->comFinanzas = new ArrayCollection();
$this->comGerencia = new ArrayCollection();
}
public function getId(): ?int
{
return $this->id;
}
public function getFechaEmision(): ?\DateTimeInterface
{
return $this->fechaEmision;
}
public function setFechaEmision(\DateTimeInterface $fechaEmision): static
{
$this->fechaEmision = $fechaEmision;
return $this;
}
public function getDirigidoA(): ?ComInformacionContacto
{
return $this->dirigidoA;
}
public function setDirigidoA(?ComInformacionContacto $dirigidoA): static
{
$this->dirigidoA = $dirigidoA;
return $this;
}
/**
* @return Collection<int, ComImportaciones>
*/
public function getImportaciones(): Collection
{
return $this->importaciones;
}
public function addImportacione(ComImportaciones $importacione): static
{
if (!$this->importaciones->contains($importacione)) {
$this->importaciones->add($importacione);
$importacione->setComMapaComunicaciones($this);
}
return $this;
}
public function removeImportacione(ComImportaciones $importacione): static
{
if ($this->importaciones->removeElement($importacione)) {
// set the owning side to null (unless already changed)
if ($importacione->getComMapaComunicaciones() === $this) {
$importacione->setComMapaComunicaciones(null);
}
}
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 getTerEmpresaCliente(): ?TerEmpresaCliente
{
return $this->terEmpresaCliente;
}
public function setTerEmpresaCliente(?TerEmpresaCliente $terEmpresaCliente): static
{
$this->terEmpresaCliente = $terEmpresaCliente;
return $this;
}
/**
* @return Collection<int, ComComex>
*/
public function getComComex(): Collection
{
return $this->comComex;
}
public function addComComex(ComComex $comComex): static
{
if (!$this->comComex->contains($comComex)) {
$this->comComex->add($comComex);
$comComex->setComMapaComunicaciones($this);
}
return $this;
}
public function removeComComex(ComComex $comComex): static
{
if ($this->comComex->removeElement($comComex)) {
// set the owning side to null (unless already changed)
if ($comComex->getComMapaComunicaciones() === $this) {
$comComex->setComMapaComunicaciones(null);
}
}
return $this;
}
/**
* @return Collection<int, ComOperacionesBodega>
*/
public function getComOperacionesBodega(): Collection
{
return $this->ComOperacionesBodega;
}
public function addComOperacionesBodega(ComOperacionesBodega $comOperacionesBodega): static
{
if (!$this->ComOperacionesBodega->contains($comOperacionesBodega)) {
$this->ComOperacionesBodega->add($comOperacionesBodega);
$comOperacionesBodega->setComMapaComunicaciones($this);
}
return $this;
}
public function removeComOperacionesBodega(ComOperacionesBodega $comOperacionesBodega): static
{
if ($this->ComOperacionesBodega->removeElement($comOperacionesBodega)) {
// set the owning side to null (unless already changed)
if ($comOperacionesBodega->getComMapaComunicaciones() === $this) {
$comOperacionesBodega->setComMapaComunicaciones(null);
}
}
return $this;
}
/**
* @return Collection<int, ComComercial>
*/
public function getComComercial(): Collection
{
return $this->comComercial;
}
public function addComComercial(ComComercial $comComercial): static
{
if (!$this->comComercial->contains($comComercial)) {
$this->comComercial->add($comComercial);
$comComercial->setComMapaComunicaciones($this);
}
return $this;
}
public function removeComComercial(ComComercial $comComercial): static
{
if ($this->comComercial->removeElement($comComercial)) {
// set the owning side to null (unless already changed)
if ($comComercial->getComMapaComunicaciones() === $this) {
$comComercial->setComMapaComunicaciones(null);
}
}
return $this;
}
/**
* @return Collection<int, ComFinanzas>
*/
public function getComFinanzas(): Collection
{
return $this->comFinanzas;
}
public function addComFinanza(ComFinanzas $comFinanza): static
{
if (!$this->comFinanzas->contains($comFinanza)) {
$this->comFinanzas->add($comFinanza);
$comFinanza->setComMapaComunicaciones($this);
}
return $this;
}
public function removeComFinanza(ComFinanzas $comFinanza): static
{
if ($this->comFinanzas->removeElement($comFinanza)) {
// set the owning side to null (unless already changed)
if ($comFinanza->getComMapaComunicaciones() === $this) {
$comFinanza->setComMapaComunicaciones(null);
}
}
return $this;
}
/**
* @return Collection<int, ComGerencia>
*/
public function getComGerencia(): Collection
{
return $this->comGerencia;
}
public function addComGerencium(ComGerencia $comGerencium): static
{
if (!$this->comGerencia->contains($comGerencium)) {
$this->comGerencia->add($comGerencium);
$comGerencium->setComMapaComunicaciones($this);
}
return $this;
}
public function removeComGerencium(ComGerencia $comGerencium): static
{
if ($this->comGerencia->removeElement($comGerencium)) {
// set the owning side to null (unless already changed)
if ($comGerencium->getComMapaComunicaciones() === $this) {
$comGerencium->setComMapaComunicaciones(null);
}
}
return $this;
}
}