src/Entity/CourseDetail.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\CourseDetailRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * @ORM\Entity(repositoryClass=CourseDetailRepository::class)
  7.  */
  8. class CourseDetail
  9. {
  10.     /**
  11.      * @ORM\Id
  12.      * @ORM\GeneratedValue
  13.      * @ORM\Column(type="integer")
  14.      */
  15.     private $id;
  16.     /**
  17.      * @ORM\OneToOne(targetEntity=Course::class, inversedBy="courseDetail", cascade={"persist", "remove"}, fetch="EAGER")
  18.      * @ORM\JoinColumn(nullable=false)
  19.      */
  20.     private $course;
  21.     /**
  22.      * @ORM\Column(type="string", length=4096, nullable=true)
  23.      */
  24.     private $description;
  25.     /**
  26.      * @ORM\Column(type="string", length=255, nullable=true)
  27.      */
  28.     private $lessons_in_course;
  29.     /**
  30.      * @ORM\Column(type="string", length=255, nullable=true)
  31.      */
  32.     private $duration;
  33.     /**
  34.      * @ORM\Column(type="string", length=255, nullable=true)
  35.      */
  36.     private $photo;
  37.     /**
  38.      * @ORM\Column(type="string", length=255, nullable=true)
  39.      */
  40.     private $free_lesson;
  41.     /**
  42.      * @ORM\Column(type="string", length=255)
  43.      */
  44.     private $video;
  45.     /**
  46.      * @ORM\Column(type="integer")
  47.      */
  48.     private $hidden;
  49.     public function getId(): ?int
  50.     {
  51.         return $this->id;
  52.     }
  53.     public function getCourse(): ?Course
  54.     {
  55.         return $this->course;
  56.     }
  57.     public function setCourse(Course $course): self
  58.     {
  59.         $this->course $course;
  60.         return $this;
  61.     }
  62.     public function getDescription(): ?string
  63.     {
  64.         return $this->description;
  65.     }
  66.     public function setDescription(?string $description): self
  67.     {
  68.         $this->description $description;
  69.         return $this;
  70.     }
  71.     public function getLessonsInCourse(): ?string
  72.     {
  73.         return $this->lessons_in_course;
  74.     }
  75.     public function setLessonsInCourse(?string $lessons_in_course): self
  76.     {
  77.         $this->lessons_in_course $lessons_in_course;
  78.         return $this;
  79.     }
  80.     public function getDuration(): ?string
  81.     {
  82.         return $this->duration;
  83.     }
  84.     public function setDuration(?string $duration): self
  85.     {
  86.         $this->duration $duration;
  87.         return $this;
  88.     }
  89.     public function getPhoto(): ?string
  90.     {
  91.         return $this->photo;
  92.     }
  93.     public function setPhoto(?string $photo): self
  94.     {
  95.         $this->photo $photo;
  96.         return $this;
  97.     }
  98.     public function getFreeLesson(): ?string
  99.     {
  100.         return $this->free_lesson;
  101.     }
  102.     public function setFreeLesson(?string $free_lesson): self
  103.     {
  104.         $this->free_lesson $free_lesson;
  105.         return $this;
  106.     }
  107.     public function getVideo(): ?string
  108.     {
  109.         return $this->video;
  110.     }
  111.     public function setVideo(string $video): self
  112.     {
  113.         $this->video $video;
  114.         return $this;
  115.     }
  116.     public function getHidden(): ?int
  117.     {
  118.         return $this->hidden;
  119.     }
  120.     public function setHidden(?string $hidden): self
  121.     {
  122.         $this->hidden $hidden;
  123.         return $this;
  124.     }
  125. }