src/Entity/ComCargarOficioAutorizacion.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\ComCargarOficioAutorizacionRepository;
  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(repositoryClassComCargarOficioAutorizacionRepository::class)]
  9. class ComCargarOficioAutorizacion
  10. {
  11.     #[ORM\Id]
  12.     #[ORM\GeneratedValue]
  13.     #[ORM\Column]
  14.     private ?int $id null;
  15.     #[ORM\ManyToOne(inversedBy'comCargarOficioAutorizacions')]
  16.     private ?TerEmpresaCliente $terEmpresaCliente null;
  17.     #[ORM\Column(length255nullabletrue)]
  18.     private ?string $procesoEjecucion null;
  19.     #[ORM\Column(length255nullabletrue)]
  20.     private ?string $oficioAutorizacion null;
  21.     #[ORM\Column(typeTypes::DATETIME_MUTABLEnullabletrue)]
  22.     private ?\DateTimeInterface $createAt null;
  23.     #[ORM\Column(typeTypes::DATETIME_MUTABLEnullabletrue)]
  24.     private ?\DateTimeInterface $updateAt null;
  25.     #[ORM\Column(length255nullabletrue)]
  26.     private ?string $createUser null;
  27.     #[ORM\Column(length255nullabletrue)]
  28.     private ?string $updateUser null;
  29.     #[ORM\OneToMany(mappedBy'comCargarOficioAutorizacion'targetEntityComValidarOficioAutorizacion::class)]
  30.     private Collection $comValidarOficioAutorizacions;
  31.     public function __construct()
  32.     {
  33.         $this->comValidarOficioAutorizacions = new ArrayCollection();
  34.     }
  35.     public function getId(): ?int
  36.     {
  37.         return $this->id;
  38.     }
  39.     public function getTerEmpresaCliente(): ?TerEmpresaCliente
  40.     {
  41.         return $this->terEmpresaCliente;
  42.     }
  43.     public function setTerEmpresaCliente(?TerEmpresaCliente $terEmpresaCliente): static
  44.     {
  45.         $this->terEmpresaCliente $terEmpresaCliente;
  46.         return $this;
  47.     }
  48.     public function getProcesoEjecucion(): ?string
  49.     {
  50.         return $this->procesoEjecucion;
  51.     }
  52.     public function setProcesoEjecucion(?string $procesoEjecucion): static
  53.     {
  54.         $this->procesoEjecucion $procesoEjecucion;
  55.         return $this;
  56.     }
  57.     public function getOficioAutorizacion(): ?string
  58.     {
  59.         return $this->oficioAutorizacion;
  60.     }
  61.     public function setOficioAutorizacion(?string $oficioAutorizacion): static
  62.     {
  63.         $this->oficioAutorizacion $oficioAutorizacion;
  64.         return $this;
  65.     }
  66.     public function getCreateAt(): ?\DateTimeInterface
  67.     {
  68.         return $this->createAt;
  69.     }
  70.     public function setCreateAt(?\DateTimeInterface $createAt): static
  71.     {
  72.         $this->createAt $createAt;
  73.         return $this;
  74.     }
  75.     public function getUpdateAt(): ?\DateTimeInterface
  76.     {
  77.         return $this->updateAt;
  78.     }
  79.     public function setUpdateAt(?\DateTimeInterface $updateAt): static
  80.     {
  81.         $this->updateAt $updateAt;
  82.         return $this;
  83.     }
  84.     public function getCreateUser(): ?string
  85.     {
  86.         return $this->createUser;
  87.     }
  88.     public function setCreateUser(?string $createUser): static
  89.     {
  90.         $this->createUser $createUser;
  91.         return $this;
  92.     }
  93.     public function getUpdateUser(): ?string
  94.     {
  95.         return $this->updateUser;
  96.     }
  97.     public function setUpdateUser(?string $updateUser): static
  98.     {
  99.         $this->updateUser $updateUser;
  100.         return $this;
  101.     }
  102.     /**
  103.      * @return Collection<int, ComValidarOficioAutorizacion>
  104.      */
  105.     public function getComValidarOficioAutorizacions(): Collection
  106.     {
  107.         return $this->comValidarOficioAutorizacions;
  108.     }
  109.     public function addComValidarOficioAutorizacion(ComValidarOficioAutorizacion $comValidarOficioAutorizacion): static
  110.     {
  111.         if (!$this->comValidarOficioAutorizacions->contains($comValidarOficioAutorizacion)) {
  112.             $this->comValidarOficioAutorizacions->add($comValidarOficioAutorizacion);
  113.             $comValidarOficioAutorizacion->setComCargarOficioAutorizacion($this);
  114.         }
  115.         return $this;
  116.     }
  117.     public function removeComValidarOficioAutorizacion(ComValidarOficioAutorizacion $comValidarOficioAutorizacion): static
  118.     {
  119.         if ($this->comValidarOficioAutorizacions->removeElement($comValidarOficioAutorizacion)) {
  120.             // set the owning side to null (unless already changed)
  121.             if ($comValidarOficioAutorizacion->getComCargarOficioAutorizacion() === $this) {
  122.                 $comValidarOficioAutorizacion->setComCargarOficioAutorizacion(null);
  123.             }
  124.         }
  125.         return $this;
  126.     }
  127. }