<?phpnamespace App\Entity\Gos;use App\Repository\Gos\UserCertificatePathRepository;use Doctrine\Common\Collections\ArrayCollection;use Doctrine\Common\Collections\Collection;use Doctrine\ORM\Mapping as ORM;/** * @ORM\Entity(repositoryClass=UserCertificatePathRepository::class) * @ORM\HasLifecycleCallbacks() */class UserCertificatePath{ /** * @ORM\Id * @ORM\GeneratedValue * @ORM\Column(type="integer") */ private $id; /** * @ORM\ManyToOne(targetEntity=User::class, inversedBy="userCertificatePaths") */ private $user; /** * @ORM\ManyToOne(targetEntity=CertificatePath::class, inversedBy="userCertificatePaths") */ private $certificatePath; /** * @ORM\Column(type="boolean", nullable=true) */ private $passTest; /** * @ORM\Column(type="boolean", nullable=true) */ private $isAccess; /** * @ORM\Column(type="datetime") */ private $createdAt; /** * @ORM\Column(type="datetime", nullable=true) */ private $updatedAt; /** @ORM\PrePersist() */ public function prePersist() { $this->createdAt = new \DateTime(); } /** @ORM\PreUpdate() */ public function preUpdate() { $this->updatedAt = new \DateTime(); } public function getId(): ?int { return $this->id; } public function getUser(): ?User { return $this->user; } public function setUser(?User $user): self { $this->user = $user; return $this; } public function getCertificatePath(): ?CertificatePath { return $this->certificatePath; } public function setCertificatePath(?CertificatePath $certificatePath): self { $this->certificatePath = $certificatePath; return $this; } public function getPassTest(): ?bool { return $this->passTest; } public function setPassTest(?bool $passTest): self { $this->passTest = $passTest; return $this; } public function getIsAccess(): ?bool { return $this->isAccess; } public function setIsAccess(?bool $isAccess): self { $this->isAccess = $isAccess; return $this; } public function getCreatedAt(): ?\DateTimeInterface { return $this->createdAt; } public function setCreatedAt(\DateTimeInterface $createdAt): self { $this->createdAt = $createdAt; return $this; } public function getUpdatedAt(): ?\DateTimeInterface { return $this->updatedAt; } public function setUpdatedAt(?\DateTimeInterface $updatedAt): self { $this->updatedAt = $updatedAt; return $this; }}