src/Entity/ParVerificacionGH.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\ParVerificacionGHRepository;
  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(repositoryClassParVerificacionGHRepository::class)]
  9. class ParVerificacionGH
  10. {
  11.     #[ORM\Id]
  12.     #[ORM\GeneratedValue]
  13.     #[ORM\Column]
  14.     private ?int $id null;
  15.     #[ORM\Column(length100)]
  16.     private ?string $nombre null;
  17.     #[ORM\ManyToOne(inversedBy'verificacionGH')]
  18.     private ?ParEstado $estado null;
  19.     #[ORM\Column(typeTypes::DATETIME_MUTABLE)]
  20.     private ?\DateTimeInterface $createAt null;
  21.     #[ORM\Column(length50)]
  22.     private ?string $createUser null;
  23.     #[ORM\Column(typeTypes::DATETIME_MUTABLE)]
  24.     private ?\DateTimeInterface $updateAt null;
  25.     #[ORM\Column(length50)]
  26.     private ?string $updateUser null;
  27.     #[ORM\OneToMany(mappedBy'verificacionGH'targetEntityGHDesvinculacion::class)]
  28.     private Collection $desvinculacion;
  29.     public function __construct()
  30.     {
  31.         $this->desvinculacion = new ArrayCollection();
  32.     }
  33.     
  34.     public function __toString() {
  35.         return $this->getNombre();
  36.     }
  37.     public function getId(): ?int
  38.     {
  39.         return $this->id;
  40.     }
  41.     public function getNombre(): ?string
  42.     {
  43.         return $this->nombre;
  44.     }
  45.     public function setNombre(string $nombre): static
  46.     {
  47.         $this->nombre $nombre;
  48.         return $this;
  49.     }
  50.     public function getEstado(): ?ParEstado
  51.     {
  52.         return $this->estado;
  53.     }
  54.     public function setEstado(?ParEstado $estado): static
  55.     {
  56.         $this->estado $estado;
  57.         return $this;
  58.     }
  59.     public function getCreateAt(): ?\DateTimeInterface
  60.     {
  61.         return $this->createAt;
  62.     }
  63.     public function setCreateAt(\DateTimeInterface $createAt): static
  64.     {
  65.         $this->createAt $createAt;
  66.         return $this;
  67.     }
  68.     public function getCreateUser(): ?string
  69.     {
  70.         return $this->createUser;
  71.     }
  72.     public function setCreateUser(string $createUser): static
  73.     {
  74.         $this->createUser $createUser;
  75.         return $this;
  76.     }
  77.     public function getUpdateAt(): ?\DateTimeInterface
  78.     {
  79.         return $this->updateAt;
  80.     }
  81.     public function setUpdateAt(\DateTimeInterface $updateAt): static
  82.     {
  83.         $this->updateAt $updateAt;
  84.         return $this;
  85.     }
  86.     public function getUpdateUser(): ?string
  87.     {
  88.         return $this->updateUser;
  89.     }
  90.     public function setUpdateUser(string $updateUser): static
  91.     {
  92.         $this->updateUser $updateUser;
  93.         return $this;
  94.     }
  95.     /**
  96.      * @return Collection<int, GHDesvinculacion>
  97.      */
  98.     public function getDesvinculacion(): Collection
  99.     {
  100.         return $this->desvinculacion;
  101.     }
  102.     public function addDesvinculacion(GHDesvinculacion $desvinculacion): static
  103.     {
  104.         if (!$this->desvinculacion->contains($desvinculacion)) {
  105.             $this->desvinculacion->add($desvinculacion);
  106.             $desvinculacion->setVerificacionGH($this);
  107.         }
  108.         return $this;
  109.     }
  110.     public function removeDesvinculacion(GHDesvinculacion $desvinculacion): static
  111.     {
  112.         if ($this->desvinculacion->removeElement($desvinculacion)) {
  113.             // set the owning side to null (unless already changed)
  114.             if ($desvinculacion->getVerificacionGH() === $this) {
  115.                 $desvinculacion->setVerificacionGH(null);
  116.             }
  117.         }
  118.         return $this;
  119.     }
  120. }