src/Entity/Gos/UserCourseDetails.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Gos;
  3. use App\Entity\Gos\Uniqskills\Course;
  4. use App\Repository\Gos\UserCourseDetailsRepository;
  5. use Doctrine\ORM\Mapping as ORM;
  6. /**
  7.  * @ORM\Entity(repositoryClass=UserCourseDetailsRepository::class)
  8.  * @ORM\Table(uniqueConstraints={@ORM\UniqueConstraint(name="user_course", columns={"user_id", "course_id"})})
  9.  */
  10. class UserCourseDetails
  11. {
  12.     /**
  13.      * @ORM\Id
  14.      * @ORM\GeneratedValue
  15.      * @ORM\Column(type="integer")
  16.      */
  17.     private $id;
  18.     /**
  19.      * @ORM\ManyToOne(targetEntity=User::class)
  20.      * @ORM\JoinColumn(nullable=false)
  21.      */
  22.     private $user;
  23.     /**
  24.      * @ORM\ManyToOne(targetEntity=Course::class)
  25.      * @ORM\JoinColumn(nullable=false)
  26.      */
  27.     private $course;
  28.     /**
  29.      * @ORM\Column(type="datetime")
  30.      */
  31.     private $startTime;
  32.     /**
  33.      * @ORM\Column(type="string", length=255)
  34.      */
  35.     private $startOn;
  36.     public function getId(): ?int
  37.     {
  38.         return $this->id;
  39.     }
  40.     public function getUser(): ?User
  41.     {
  42.         return $this->user;
  43.     }
  44.     public function setUser(?User $user): self
  45.     {
  46.         $this->user $user;
  47.         return $this;
  48.     }
  49.     public function getCourse(): ?Course
  50.     {
  51.         return $this->course;
  52.     }
  53.     public function setCourse(?Course $course): self
  54.     {
  55.         $this->course $course;
  56.         return $this;
  57.     }
  58.     public function getStartTime(): ?\DateTimeInterface
  59.     {
  60.         return $this->startTime;
  61.     }
  62.     public function setStartTime(\DateTimeInterface $startTime): self
  63.     {
  64.         $this->startTime $startTime;
  65.         return $this;
  66.     }
  67.     public function getStartOn(): ?string
  68.     {
  69.         return $this->startOn;
  70.     }
  71.     public function setStartOn(string $startOn): self
  72.     {
  73.         $this->startOn $startOn;
  74.         return $this;
  75.     }
  76. }