<?php
namespace App\Entity;
use App\Repository\CourseDetailRepository;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=CourseDetailRepository::class)
*/
class CourseDetail
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\OneToOne(targetEntity=Course::class, inversedBy="courseDetail", cascade={"persist", "remove"}, fetch="EAGER")
* @ORM\JoinColumn(nullable=false)
*/
private $course;
/**
* @ORM\Column(type="string", length=4096, nullable=true)
*/
private $description;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $lessons_in_course;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $duration;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $photo;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $free_lesson;
/**
* @ORM\Column(type="string", length=255)
*/
private $video;
/**
* @ORM\Column(type="integer")
*/
private $hidden;
public function getId(): ?int
{
return $this->id;
}
public function getCourse(): ?Course
{
return $this->course;
}
public function setCourse(Course $course): self
{
$this->course = $course;
return $this;
}
public function getDescription(): ?string
{
return $this->description;
}
public function setDescription(?string $description): self
{
$this->description = $description;
return $this;
}
public function getLessonsInCourse(): ?string
{
return $this->lessons_in_course;
}
public function setLessonsInCourse(?string $lessons_in_course): self
{
$this->lessons_in_course = $lessons_in_course;
return $this;
}
public function getDuration(): ?string
{
return $this->duration;
}
public function setDuration(?string $duration): self
{
$this->duration = $duration;
return $this;
}
public function getPhoto(): ?string
{
return $this->photo;
}
public function setPhoto(?string $photo): self
{
$this->photo = $photo;
return $this;
}
public function getFreeLesson(): ?string
{
return $this->free_lesson;
}
public function setFreeLesson(?string $free_lesson): self
{
$this->free_lesson = $free_lesson;
return $this;
}
public function getVideo(): ?string
{
return $this->video;
}
public function setVideo(string $video): self
{
$this->video = $video;
return $this;
}
public function getHidden(): ?int
{
return $this->hidden;
}
public function setHidden(?string $hidden): self
{
$this->hidden = $hidden;
return $this;
}
}