<?php
namespace App\Entity;
use App\Repository\CourseReviewRepository;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=CourseReviewRepository::class)
*/
class CourseReview extends Base
{
/**
* @ORM\ManyToOne(targetEntity=Course::class, inversedBy="reviews")
*/
private $course;
/**
* @ORM\ManyToOne(targetEntity=Applicant::class)
*/
private $applicant;
/**
* @ORM\Column(type="boolean")
*/
private $isAnonymous;
/**
* @ORM\Column(type="integer", nullable=true)
*/
private $courseRating;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $courseReview;
/**
* @ORM\Column(type="integer", nullable=true)
*/
private $lecturerRating;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $lecturerReview;
/**
* @ORM\Column(type="integer", nullable=true)
*/
private $placeRating;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $placeReview;
public function getCourse(): ?Course
{
return $this->course;
}
public function setCourse(?Course $course): self
{
$this->course = $course;
return $this;
}
public function getApplicant(): ?Applicant
{
return $this->applicant;
}
public function setApplicant(?Applicant $applicant): self
{
$this->applicant = $applicant;
return $this;
}
public function getIsAnonymous(): ?bool
{
return $this->isAnonymous;
}
public function setIsAnonymous(bool $isAnonymous): self
{
$this->isAnonymous = $isAnonymous;
return $this;
}
public function getCourseRating(): ?int
{
return $this->courseRating;
}
public function setCourseRating(?int $courseRating): self
{
$this->courseRating = $courseRating;
return $this;
}
public function getCourseReview(): ?string
{
return $this->courseReview;
}
public function setCourseReview(?string $courseReview): self
{
$this->courseReview = $courseReview;
return $this;
}
public function getLecturerRating(): ?int
{
return $this->lecturerRating;
}
public function setLecturerRating(?int $lecturerRating): self
{
$this->lecturerRating = $lecturerRating;
return $this;
}
public function getLecturerReview(): ?string
{
return $this->lecturerReview;
}
public function setLecturerReview(?string $lecturerReview): self
{
$this->lecturerReview = $lecturerReview;
return $this;
}
public function getPlaceRating(): ?int
{
return $this->placeRating;
}
public function setPlaceRating(?int $placeRating): self
{
$this->placeRating = $placeRating;
return $this;
}
public function getPlaceReview(): ?string
{
return $this->placeReview;
}
public function setPlaceReview(?string $placeReview): self
{
$this->placeReview = $placeReview;
return $this;
}
}