src/Entity/Gos/UserCertificatePath.php line 14

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Gos;
  3. use App\Repository\Gos\UserCertificatePathRepository;
  4. use Doctrine\Common\Collections\ArrayCollection;
  5. use Doctrine\Common\Collections\Collection;
  6. use Doctrine\ORM\Mapping as ORM;
  7. /**
  8.  * @ORM\Entity(repositoryClass=UserCertificatePathRepository::class)
  9.  * @ORM\HasLifecycleCallbacks()
  10.  */
  11. class UserCertificatePath
  12. {
  13.     /**
  14.      * @ORM\Id
  15.      * @ORM\GeneratedValue
  16.      * @ORM\Column(type="integer")
  17.      */
  18.     private $id;
  19.     /**
  20.      * @ORM\ManyToOne(targetEntity=User::class, inversedBy="userCertificatePaths")
  21.      */
  22.     private $user;
  23.     /**
  24.      * @ORM\ManyToOne(targetEntity=CertificatePath::class, inversedBy="userCertificatePaths")
  25.      */
  26.     private $certificatePath;
  27.     /**
  28.      * @ORM\Column(type="boolean", nullable=true)
  29.      */
  30.     private $passTest;
  31.     /**
  32.      * @ORM\Column(type="boolean", nullable=true)
  33.      */
  34.     private $isAccess;
  35.     /**
  36.      * @ORM\Column(type="datetime")
  37.      */
  38.     private $createdAt;
  39.     /**
  40.      * @ORM\Column(type="datetime", nullable=true)
  41.      */
  42.     private $updatedAt;
  43.     /** @ORM\PrePersist() */
  44.     public function prePersist()
  45.     {
  46.         $this->createdAt = new \DateTime();
  47.     }
  48.     /** @ORM\PreUpdate() */
  49.     public function preUpdate()
  50.     {
  51.         $this->updatedAt = new \DateTime();
  52.     }
  53.     public function getId(): ?int
  54.     {
  55.         return $this->id;
  56.     }
  57.     public function getUser(): ?User
  58.     {
  59.         return $this->user;
  60.     }
  61.     public function setUser(?User $user): self
  62.     {
  63.         $this->user $user;
  64.         return $this;
  65.     }
  66.     public function getCertificatePath(): ?CertificatePath
  67.     {
  68.         return $this->certificatePath;
  69.     }
  70.     public function setCertificatePath(?CertificatePath $certificatePath): self
  71.     {
  72.         $this->certificatePath $certificatePath;
  73.         return $this;
  74.     }
  75.     public function getPassTest(): ?bool
  76.     {
  77.         return $this->passTest;
  78.     }
  79.     public function setPassTest(?bool $passTest): self
  80.     {
  81.         $this->passTest $passTest;
  82.         return $this;
  83.     }
  84.     public function getIsAccess(): ?bool
  85.     {
  86.         return $this->isAccess;
  87.     }
  88.     public function setIsAccess(?bool $isAccess): self
  89.     {
  90.         $this->isAccess $isAccess;
  91.         return $this;
  92.     }
  93.     public function getCreatedAt(): ?\DateTimeInterface
  94.     {
  95.         return $this->createdAt;
  96.     }
  97.     public function setCreatedAt(\DateTimeInterface $createdAt): self
  98.     {
  99.         $this->createdAt $createdAt;
  100.         return $this;
  101.     }
  102.     public function getUpdatedAt(): ?\DateTimeInterface
  103.     {
  104.         return $this->updatedAt;
  105.     }
  106.     public function setUpdatedAt(?\DateTimeInterface $updatedAt): self
  107.     {
  108.         $this->updatedAt $updatedAt;
  109.         return $this;
  110.     }
  111. }