src/Entity/ComCreacionCliente.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\ComCreacionClienteRepository;
  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(repositoryClassComCreacionClienteRepository::class)]
  9. class ComCreacionCliente
  10. {
  11.     #[ORM\Id]
  12.     #[ORM\GeneratedValue]
  13.     #[ORM\Column]
  14.     private ?int $id null;
  15.     #[ORM\Column(length255nullabletrue)]
  16.     private ?string $creacionClienteApplysoft null;
  17.     #[ORM\Column(length255nullabletrue)]
  18.     private ?string $creacionClienteOpencomex null;
  19.     #[ORM\ManyToOne(inversedBy'comCreacionCliente')]
  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\Column(length255nullabletrue)]
  30.     private ?string $creacionTarifasAplisoft null;
  31.     #[ORM\Column(length255nullabletrue)]
  32.     private ?string $creacionTarifasOpencomex null;
  33.     #[ORM\ManyToMany(targetEntityComOfertaComercial::class, inversedBy'comCreacionClientes')]
  34.     private Collection $consecutivoAsociado;
  35.     #[ORM\OneToMany(mappedBy'comCreacionCliente'targetEntityComHojaVida::class)]
  36.     private Collection $comHojaVidas;
  37.     public function __construct()
  38.     {
  39.         $this->consecutivoAsociado = new ArrayCollection();
  40.         $this->comHojaVidas = new ArrayCollection();
  41.     }
  42.     public function getId(): ?int
  43.     {
  44.         return $this->id;
  45.     }
  46.     public function getCreacionClienteApplysoft(): ?string
  47.     {
  48.         return $this->creacionClienteApplysoft;
  49.     }
  50.     public function setCreacionClienteApplysoft(string $creacionClienteApplysoft): static
  51.     {
  52.         $this->creacionClienteApplysoft $creacionClienteApplysoft;
  53.         return $this;
  54.     }
  55.     public function getCreacionClienteOpencomex(): ?string
  56.     {
  57.         return $this->creacionClienteOpencomex;
  58.     }
  59.     public function setCreacionClienteOpencomex(?string $creacionClienteOpencomex): static
  60.     {
  61.         $this->creacionClienteOpencomex $creacionClienteOpencomex;
  62.         return $this;
  63.     }
  64.     public function getTerEmpresaCliente(): ?TerEmpresaCliente
  65.     {
  66.         return $this->terEmpresaCliente;
  67.     }
  68.     public function setTerEmpresaCliente(?TerEmpresaCliente $terEmpresaCliente): static
  69.     {
  70.         $this->terEmpresaCliente $terEmpresaCliente;
  71.         return $this;
  72.     }
  73.     public function getCreateAt(): ?\DateTimeInterface
  74.     {
  75.         return $this->createAt;
  76.     }
  77.     public function setCreateAt(\DateTimeInterface $createAt): static
  78.     {
  79.         $this->createAt $createAt;
  80.         return $this;
  81.     }
  82.     public function getCreateUser(): ?string
  83.     {
  84.         return $this->createUser;
  85.     }
  86.     public function setCreateUser(string $createUser): static
  87.     {
  88.         $this->createUser $createUser;
  89.         return $this;
  90.     }
  91.     public function getUpdateAt(): ?\DateTimeInterface
  92.     {
  93.         return $this->updateAt;
  94.     }
  95.     public function setUpdateAt(\DateTimeInterface $updateAt): static
  96.     {
  97.         $this->updateAt $updateAt;
  98.         return $this;
  99.     }
  100.     public function getUpdateUser(): ?string
  101.     {
  102.         return $this->updateUser;
  103.     }
  104.     public function setUpdateUser(string $updateUser): static
  105.     {
  106.         $this->updateUser $updateUser;
  107.         return $this;
  108.     }
  109.     public function getCreacionTarifasAplisoft(): ?string
  110.     {
  111.         return $this->creacionTarifasAplisoft;
  112.     }
  113.     public function setCreacionTarifasAplisoft(?string $creacionTarifasAplisoft): static
  114.     {
  115.         $this->creacionTarifasAplisoft $creacionTarifasAplisoft;
  116.         return $this;
  117.     }
  118.     public function getCreacionTarifasOpencomex(): ?string
  119.     {
  120.         return $this->creacionTarifasOpencomex;
  121.     }
  122.     public function setCreacionTarifasOpencomex(string $creacionTarifasOpencomex): static
  123.     {
  124.         $this->creacionTarifasOpencomex $creacionTarifasOpencomex;
  125.         return $this;
  126.     }
  127.     /**
  128.      * @return Collection<int, ComOfertaComercial>
  129.      */
  130.     public function getConsecutivoAsociado(): Collection
  131.     {
  132.         return $this->consecutivoAsociado;
  133.     }
  134.     public function addConsecutivoAsociado(ComOfertaComercial $consecutivoAsociado): static
  135.     {
  136.         if (!$this->consecutivoAsociado->contains($consecutivoAsociado)) {
  137.             $this->consecutivoAsociado->add($consecutivoAsociado);
  138.         }
  139.         return $this;
  140.     }
  141.     public function removeConsecutivoAsociado(ComOfertaComercial $consecutivoAsociado): static
  142.     {
  143.         $this->consecutivoAsociado->removeElement($consecutivoAsociado);
  144.         return $this;
  145.     }
  146.     /**
  147.      * @return Collection<int, ComHojaVida>
  148.      */
  149.     public function getComHojaVidas(): Collection
  150.     {
  151.         return $this->comHojaVidas;
  152.     }
  153.     public function addComHojaVida(ComHojaVida $comHojaVida): static
  154.     {
  155.         if (!$this->comHojaVidas->contains($comHojaVida)) {
  156.             $this->comHojaVidas->add($comHojaVida);
  157.             $comHojaVida->setComCreacionCliente($this);
  158.         }
  159.         return $this;
  160.     }
  161.     public function removeComHojaVida(ComHojaVida $comHojaVida): static
  162.     {
  163.         if ($this->comHojaVidas->removeElement($comHojaVida)) {
  164.             // set the owning side to null (unless already changed)
  165.             if ($comHojaVida->getComCreacionCliente() === $this) {
  166.                 $comHojaVida->setComCreacionCliente(null);
  167.             }
  168.         }
  169.         return $this;
  170.     }
  171. }