src/Entity/Gos/Uniqskills/UserCertificate.php line 14

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Gos\Uniqskills;
  3. use App\Entity\Gos\OrderPart;
  4. use App\Entity\Gos\Participants;
  5. use App\Entity\Gos\User;
  6. use Doctrine\ORM\Mapping as ORM;
  7. /**
  8.  * @ORM\Entity(repositoryClass="App\Repository\Gos\Uniqskills\UserCertificateRepository")
  9.  * @ORM\HasLifecycleCallbacks()
  10.  */
  11. class UserCertificate
  12. {
  13.     /**
  14.      * @ORM\Id()
  15.      * @ORM\GeneratedValue()
  16.      * @ORM\Column(type="integer")
  17.      */
  18.     private $id;
  19.     /**
  20.      * @ORM\ManyToOne(targetEntity="App\Entity\Gos\User", inversedBy="userCertificates")
  21.      */
  22.     private $user;
  23.     /**
  24.      * @ORM\ManyToOne(targetEntity="App\Entity\Gos\Uniqskills\Certificate", inversedBy="userCertificates")
  25.      */
  26.     private $certificate;
  27.     /**
  28.      * @ORM\Column(type="string", length=255, nullable=true)
  29.      */
  30.     private $fileName;
  31.     /**
  32.      * @ORM\Column(type="datetime")
  33.      */
  34.     private $createdAt;
  35.     /**
  36.      * @ORM\Column(type="datetime", nullable=true)
  37.      */
  38.     private $updatedAt;
  39.     /**
  40.      * @ORM\Column(type="string", nullable=true)
  41.      */
  42.     private $finishDate;
  43.     /**
  44.      * @ORM\ManyToOne(targetEntity=OrderPart::class, inversedBy="userCertificates")
  45.      */
  46.     private $orderPart;
  47.     /**
  48.      * @ORM\Column(type="boolean", nullable=true)
  49.      */
  50.     private $hasAccessFastCertificate;
  51.     /**
  52.      * @ORM\Column(type="boolean", nullable=true)
  53.      */
  54.     private $isFromCertificatePath;
  55.     /**
  56.      * @ORM\ManyToOne(targetEntity=Participants::class, inversedBy="userCertificate")
  57.      */
  58.     private $participant;
  59.     /** @ORM\PrePersist() */
  60.     public function onPrePersist()
  61.     {
  62.         $this->createdAt = new \DateTime();
  63.     }
  64.     /** @ORM\PreUpdate() */
  65.     public function onPreUpdate()
  66.     {
  67.         $this->updatedAt = new \DateTime();
  68.     }
  69.     public function getId(): ?int
  70.     {
  71.         return $this->id;
  72.     }
  73.     public function getUser(): ?User
  74.     {
  75.         return $this->user;
  76.     }
  77.     public function setUser(?User $user): self
  78.     {
  79.         $this->user $user;
  80.         return $this;
  81.     }
  82.     public function getCertificate(): ?Certificate
  83.     {
  84.         return $this->certificate;
  85.     }
  86.     public function setCertificate(?Certificate $certificate): self
  87.     {
  88.         $this->certificate $certificate;
  89.         return $this;
  90.     }
  91.     public function getFileName(): ?string
  92.     {
  93.         return $this->fileName;
  94.     }
  95.     public function setFileName(string $fileName): self
  96.     {
  97.         $this->fileName $fileName;
  98.         return $this;
  99.     }
  100.     public function getCreatedAt(): ?\DateTimeInterface
  101.     {
  102.         return $this->createdAt;
  103.     }
  104.     public function setCreatedAt(\DateTimeInterface $createdAt): self
  105.     {
  106.         $this->createdAt $createdAt;
  107.         return $this;
  108.     }
  109.     public function getUpdatedAt(): ?\DateTimeInterface
  110.     {
  111.         return $this->updatedAt;
  112.     }
  113.     public function setUpdatedAt(?\DateTimeInterface $updatedAt): self
  114.     {
  115.         $this->updatedAt $updatedAt;
  116.         return $this;
  117.     }
  118.     public function getFinishDate(): ?string
  119.     {
  120.         return $this->finishDate;
  121.     }
  122.     public function setFinishDate(?string $finishDate): self
  123.     {
  124.         $this->finishDate $finishDate;
  125.         return $this;
  126.     }
  127.     public function getOrderPart(): ?OrderPart
  128.     {
  129.         return $this->orderPart;
  130.     }
  131.     public function setOrderPart(?OrderPart $orderPart): self
  132.     {
  133.         $this->orderPart $orderPart;
  134.         return $this;
  135.     }
  136.     public function getHasAccessFastCertificate(): ?bool
  137.     {
  138.         return $this->hasAccessFastCertificate;
  139.     }
  140.     public function setHasAccessFastCertificate(?bool $hasAccessFastCertificate): self
  141.     {
  142.         $this->hasAccessFastCertificate $hasAccessFastCertificate;
  143.         return $this;
  144.     }
  145.     public function getIsFromCertificatePath(): ?bool
  146.     {
  147.         return $this->isFromCertificatePath;
  148.     }
  149.     public function setIsFromCertificatePath(?bool $isFromCertificatePath): self
  150.     {
  151.         $this->isFromCertificatePath $isFromCertificatePath;
  152.         return $this;
  153.     }
  154.     public function getParticipant(): ?Participants
  155.     {
  156.         return $this->participant;
  157.     }
  158.     public function setParticipant(?Participants $participant): self
  159.     {
  160.         $this->participant $participant;
  161.         return $this;
  162.     }
  163. }