<?php
namespace App\Entity;
use App\Repository\CourseScheduleRepository;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=CourseScheduleRepository::class)
*/
class CourseSchedule
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\ManyToOne(targetEntity=Course::class, inversedBy="courseSchedules")
* @ORM\JoinColumn(nullable=false)
*/
private $course;
/**
* @ORM\Column(type="integer")
*/
private $lesson_number;
/**
* @ORM\Column(type="string", length=255)
*/
private $topic;
/**
* @ORM\Column(type="string", length=512)
*/
private $description;
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 getLessonNumber(): ?int
{
return $this->lesson_number;
}
public function setLessonNumber(int $lesson_number): self
{
$this->lesson_number = $lesson_number;
return $this;
}
public function getTopic(): ?string
{
return $this->topic;
}
public function setTopic(string $topic): self
{
$this->topic = $topic;
return $this;
}
public function getDescription(): ?string
{
return $this->description;
}
public function setDescription(string $description): self
{
$this->description = $description;
return $this;
}
}