src/Entity/CourseReview.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\CourseReviewRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * @ORM\Entity(repositoryClass=CourseReviewRepository::class)
  7.  */
  8. class CourseReview extends Base
  9. {
  10.     /**
  11.      * @ORM\ManyToOne(targetEntity=Course::class, inversedBy="reviews")
  12.      */
  13.     private $course;
  14.     /**
  15.      * @ORM\ManyToOne(targetEntity=Applicant::class)
  16.      */
  17.     private $applicant;
  18.     /**
  19.      * @ORM\Column(type="boolean")
  20.      */
  21.     private $isAnonymous;
  22.     /**
  23.      * @ORM\Column(type="integer", nullable=true)
  24.      */
  25.     private $courseRating;
  26.     /**
  27.      * @ORM\Column(type="text", nullable=true)
  28.      */
  29.     private $courseReview;
  30.     /**
  31.      * @ORM\Column(type="integer", nullable=true)
  32.      */
  33.     private $lecturerRating;
  34.     /**
  35.      * @ORM\Column(type="text", nullable=true)
  36.      */
  37.     private $lecturerReview;
  38.     /**
  39.      * @ORM\Column(type="integer", nullable=true)
  40.      */
  41.     private $placeRating;
  42.     /**
  43.      * @ORM\Column(type="text", nullable=true)
  44.      */
  45.     private $placeReview;
  46.     public function getCourse(): ?Course
  47.     {
  48.         return $this->course;
  49.     }
  50.     public function setCourse(?Course $course): self
  51.     {
  52.         $this->course $course;
  53.         return $this;
  54.     }
  55.     public function getApplicant(): ?Applicant
  56.     {
  57.         return $this->applicant;
  58.     }
  59.     public function setApplicant(?Applicant $applicant): self
  60.     {
  61.         $this->applicant $applicant;
  62.         return $this;
  63.     }
  64.     public function getIsAnonymous(): ?bool
  65.     {
  66.         return $this->isAnonymous;
  67.     }
  68.     public function setIsAnonymous(bool $isAnonymous): self
  69.     {
  70.         $this->isAnonymous $isAnonymous;
  71.         return $this;
  72.     }
  73.     public function getCourseRating(): ?int
  74.     {
  75.         return $this->courseRating;
  76.     }
  77.     public function setCourseRating(?int $courseRating): self
  78.     {
  79.         $this->courseRating $courseRating;
  80.         return $this;
  81.     }
  82.     public function getCourseReview(): ?string
  83.     {
  84.         return $this->courseReview;
  85.     }
  86.     public function setCourseReview(?string $courseReview): self
  87.     {
  88.         $this->courseReview $courseReview;
  89.         return $this;
  90.     }
  91.     public function getLecturerRating(): ?int
  92.     {
  93.         return $this->lecturerRating;
  94.     }
  95.     public function setLecturerRating(?int $lecturerRating): self
  96.     {
  97.         $this->lecturerRating $lecturerRating;
  98.         return $this;
  99.     }
  100.     public function getLecturerReview(): ?string
  101.     {
  102.         return $this->lecturerReview;
  103.     }
  104.     public function setLecturerReview(?string $lecturerReview): self
  105.     {
  106.         $this->lecturerReview $lecturerReview;
  107.         return $this;
  108.     }
  109.     public function getPlaceRating(): ?int
  110.     {
  111.         return $this->placeRating;
  112.     }
  113.     public function setPlaceRating(?int $placeRating): self
  114.     {
  115.         $this->placeRating $placeRating;
  116.         return $this;
  117.     }
  118.     public function getPlaceReview(): ?string
  119.     {
  120.         return $this->placeReview;
  121.     }
  122.     public function setPlaceReview(?string $placeReview): self
  123.     {
  124.         $this->placeReview $placeReview;
  125.         return $this;
  126.     }
  127. }