src/Entity/ComClientesTarifas.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\ComClientesTarifasRepository;
  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(repositoryClassComClientesTarifasRepository::class)]
  9. class ComClientesTarifas
  10. {
  11.     #[ORM\Id]
  12.     #[ORM\GeneratedValue]
  13.     #[ORM\Column]
  14.     private ?int $id null;
  15.     #[ORM\Column]
  16.     private array $aduanas = [];
  17.     #[ORM\Column(length255nullabletrue)]
  18.     private ?string $tipoEmpresa null;
  19.     #[ORM\Column(length255nullabletrue)]
  20.     private ?string $regimenTributario null;
  21.     #[ORM\Column]
  22.     private array $condicionesEspeciales = [];
  23.     #[ORM\Column(type'boolean'nullabletrue)]
  24.     private ?bool $protocoloExportacion null;
  25.     #[ORM\Column(length255nullabletrue)]
  26.     private ?string $producto null;
  27.     #[ORM\Column(length255nullabletrue)]
  28.     private ?string $pais null;
  29.     #[ORM\Column(length255nullabletrue)]
  30.     private ?string $terminoNegociacion null;
  31.     #[ORM\Column(length255nullabletrue)]
  32.     private ?string $observaciones null;
  33.     #[ORM\Column(length255nullabletrue)]
  34.     private ?string $tipoCaso null;
  35.     #[ORM\ManyToOne(inversedBy'comClientesTarifas')]
  36.     private ?ComProspecto $comProspecto null;
  37.     #[ORM\Column(typeTypes::DATETIME_MUTABLE)]
  38.     private ?\DateTimeInterface $createAt null;
  39.     #[ORM\Column(length255)]
  40.     private ?string $createUser null;
  41.     #[ORM\Column(typeTypes::DATETIME_MUTABLE)]
  42.     private ?\DateTimeInterface $updateAt null;
  43.     #[ORM\Column(length255)]
  44.     private ?string $updateUser null;
  45.     #[ORM\ManyToMany(targetEntityComInformacionContacto::class, inversedBy'comClientesTarifas')]
  46.     private Collection $contactoC170Cliente;
  47.     #[ORM\ManyToOne(inversedBy'comClientesTarifas')]
  48.     private ?TerEmpresaCliente $terEmpresaCliente null;
  49.     #[ORM\OneToMany(mappedBy'comClientesTarifas'targetEntityComTiempoServiciosANS::class)]
  50.     private Collection $comTiempoServiciosANS;
  51.     #[ORM\OneToMany(mappedBy'comClienteTarifas'targetEntityComClientesVinculados::class)]
  52.     private Collection $comClientesVinculados;
  53.     public function __construct()
  54.     {
  55.         $this->contactoC170Cliente = new ArrayCollection();
  56.         $this->comTiempoServiciosANS = new ArrayCollection();
  57.         $this->comClientesVinculados = new ArrayCollection();
  58.     }
  59.     public function getId(): ?int
  60.     {
  61.         return $this->id;
  62.     }
  63.     public function getAduanas(): array
  64.     {
  65.         return $this->aduanas;
  66.     }
  67.     public function setAduanas(array $aduanas): static
  68.     {
  69.         $this->aduanas $aduanas;
  70.         return $this;
  71.     }
  72.     public function getTipoEmpresa(): ?string
  73.     {
  74.         return $this->tipoEmpresa;
  75.     }
  76.     public function setTipoEmpresa(string $tipoEmpresa): static
  77.     {
  78.         $this->tipoEmpresa $tipoEmpresa;
  79.         return $this;
  80.     }
  81.     public function getRegimenTributario(): ?string
  82.     {
  83.         return $this->regimenTributario;
  84.     }
  85.     public function setRegimenTributario(string $regimenTributario): static
  86.     {
  87.         $this->regimenTributario $regimenTributario;
  88.         return $this;
  89.     }
  90.     public function getCondicionesEspeciales(): array
  91.     {
  92.         return $this->condicionesEspeciales;
  93.     }
  94.     public function setCondicionesEspeciales(array $condicionesEspeciales): static
  95.     {
  96.         $this->condicionesEspeciales $condicionesEspeciales;
  97.         return $this;
  98.     }
  99.     public function isProtocoloExportacion(): ?bool
  100.     {
  101.         return $this->protocoloExportacion;
  102.     }
  103.     public function setProtocoloExportacion(?bool $protocoloExportacion): static
  104.     {
  105.         $this->protocoloExportacion $protocoloExportacion;
  106.         return $this;
  107.     }
  108.     public function getProducto(): ?string
  109.     {
  110.         return $this->producto;
  111.     }
  112.     public function setProducto(?string $producto): static
  113.     {
  114.         $this->producto $producto;
  115.         return $this;
  116.     }
  117.     public function getPais(): ?string
  118.     {
  119.         return $this->pais;
  120.     }
  121.     public function setPais(?string $pais): static
  122.     {
  123.         $this->pais $pais;
  124.         return $this;
  125.     }
  126.     public function getTerminoNegociacion(): ?string
  127.     {
  128.         return $this->terminoNegociacion;
  129.     }
  130.     public function setTerminoNegociacion(?string $terminoNegociacion): static
  131.     {
  132.         $this->terminoNegociacion $terminoNegociacion;
  133.         return $this;
  134.     }
  135.     public function getObservaciones(): ?string
  136.     {
  137.         return $this->observaciones;
  138.     }
  139.     public function setObservaciones(?string $observaciones): static
  140.     {
  141.         $this->observaciones $observaciones;
  142.         return $this;
  143.     }
  144.     public function getTipoCaso(): ?string
  145.     {
  146.         return $this->tipoCaso;
  147.     }
  148.     public function setTipoCaso(string $tipoCaso): static
  149.     {
  150.         $this->tipoCaso $tipoCaso;
  151.         return $this;
  152.     }
  153.     public function getComProspecto(): ?ComProspecto
  154.     {
  155.         return $this->comProspecto;
  156.     }
  157.     public function setComProspecto(?ComProspecto $comProspecto): static
  158.     {
  159.         $this->comProspecto $comProspecto;
  160.         return $this;
  161.     }
  162.     public function getCreateAt(): ?\DateTimeInterface
  163.     {
  164.         return $this->createAt;
  165.     }
  166.     public function setCreateAt(\DateTimeInterface $createAt): static
  167.     {
  168.         $this->createAt $createAt;
  169.         return $this;
  170.     }
  171.     public function getCreateUser(): ?string
  172.     {
  173.         return $this->createUser;
  174.     }
  175.     public function setCreateUser(string $createUser): static
  176.     {
  177.         $this->createUser $createUser;
  178.         return $this;
  179.     }
  180.     public function getUpdateAt(): ?\DateTimeInterface
  181.     {
  182.         return $this->updateAt;
  183.     }
  184.     public function setUpdateAt(\DateTimeInterface $updateAt): static
  185.     {
  186.         $this->updateAt $updateAt;
  187.         return $this;
  188.     }
  189.     public function getUpdateUser(): ?string
  190.     {
  191.         return $this->updateUser;
  192.     }
  193.     public function setUpdateUser(string $updateUser): static
  194.     {
  195.         $this->updateUser $updateUser;
  196.         return $this;
  197.     }
  198.     /**
  199.      * @return Collection<int, ComInformacionContacto>
  200.      */
  201.     public function getContactoC170Cliente(): Collection
  202.     {
  203.         return $this->contactoC170Cliente;
  204.     }
  205.     public function addContactoC170Cliente(ComInformacionContacto $contactoC170Cliente): static
  206.     {
  207.         if (!$this->contactoC170Cliente->contains($contactoC170Cliente)) {
  208.             $this->contactoC170Cliente->add($contactoC170Cliente);
  209.         }
  210.         return $this;
  211.     }
  212.     public function removeContactoC170Cliente(ComInformacionContacto $contactoC170Cliente): static
  213.     {
  214.         $this->contactoC170Cliente->removeElement($contactoC170Cliente);
  215.         return $this;
  216.     }
  217.     public function getTerEmpresaCliente(): ?TerEmpresaCliente
  218.     {
  219.         return $this->terEmpresaCliente;
  220.     }
  221.     public function setTerEmpresaCliente(?TerEmpresaCliente $terEmpresaCliente): static
  222.     {
  223.         $this->terEmpresaCliente $terEmpresaCliente;
  224.         return $this;
  225.     }
  226.     /**
  227.      * @return Collection<int, ComTiempoServiciosANS>
  228.      */
  229.     public function getComTiempoServiciosANS(): Collection
  230.     {
  231.         return $this->comTiempoServiciosANS;
  232.     }
  233.     public function addComTiempoServiciosAN(ComTiempoServiciosANS $comTiempoServiciosAN): static
  234.     {
  235.         if (!$this->comTiempoServiciosANS->contains($comTiempoServiciosAN)) {
  236.             $this->comTiempoServiciosANS->add($comTiempoServiciosAN);
  237.             $comTiempoServiciosAN->setComClientesTarifas($this);
  238.         }
  239.         return $this;
  240.     }
  241.     public function removeComTiempoServiciosAN(ComTiempoServiciosANS $comTiempoServiciosAN): static
  242.     {
  243.         if ($this->comTiempoServiciosANS->removeElement($comTiempoServiciosAN)) {
  244.             // set the owning side to null (unless already changed)
  245.             if ($comTiempoServiciosAN->getComClientesTarifas() === $this) {
  246.                 $comTiempoServiciosAN->setComClientesTarifas(null);
  247.             }
  248.         }
  249.         return $this;
  250.     }
  251.     /**
  252.      * @return Collection<int, ComClientesVinculados>
  253.      */
  254.     public function getComClientesVinculados(): Collection
  255.     {
  256.         return $this->comClientesVinculados;
  257.     }
  258.     public function addComClientesVinculado(ComClientesVinculados $comClientesVinculado): static
  259.     {
  260.         if (!$this->comClientesVinculados->contains($comClientesVinculado)) {
  261.             $this->comClientesVinculados->add($comClientesVinculado);
  262.             $comClientesVinculado->setComClienteTarifas($this);
  263.         }
  264.         return $this;
  265.     }
  266.     public function removeComClientesVinculado(ComClientesVinculados $comClientesVinculado): static
  267.     {
  268.         if ($this->comClientesVinculados->removeElement($comClientesVinculado)) {
  269.             // set the owning side to null (unless already changed)
  270.             if ($comClientesVinculado->getComClienteTarifas() === $this) {
  271.                 $comClientesVinculado->setComClienteTarifas(null);
  272.             }
  273.         }
  274.         return $this;
  275.     }
  276. }