<?php

namespace App\Entity;

use App\Repository\RatingRepository;
use Doctrine\ORM\Mapping as ORM;

/**
 * @ORM\Entity(repositoryClass=RatingRepository::class)
 */
class Rating
{
    /**
     * @ORM\Id()
     * @ORM\GeneratedValue()
     * @ORM\Column(type="integer")
     */
    private $id;
    /**
     * @ORM\ManyToOne(targetEntity="App\Entity\Institution", inversedBy="Rating"))
     * @ORM\JoinColumn(nullable=true)
     */
    private $Institution;
    /**
     * @ORM\ManyToOne(targetEntity="App\Entity\Cource", inversedBy="Rating"))
     * @ORM\JoinColumn(nullable=true)
     */
    private $Course;
    /**
     * @ORM\ManyToOne(targetEntity="App\Entity\Participant", inversedBy="Rating"))
     * @ORM\JoinColumn(nullable=true)
     */
    private $Participant;
    /**
     * @ORM\Column(type="integer")
     */
    private $note;

    public function getId(): ?int
    {
        return $this->id;
    }

    /**
     * @return mixed
     */
    public function getInstitution()
    {
        return $this->Institution;
    }

    /**
     * @param mixed $Institution
     */
    public function setInstitution($Institution): void
    {
        $this->Institution = $Institution;
    }

    /**
     * @return mixed
     */
    public function getParticipant()
    {
        return $this->Participant;
    }

    /**
     * @param mixed $Participant
     */
    public function setParticipant($Participant): void
    {
        $this->Participant = $Participant;
    }

    /**
     * @return mixed
     */
    public function getNote()
    {
        return $this->note;
    }

    /**
     * @param mixed $note
     */
    public function setNote($note): void
    {
        $this->note = $note;
    }

    /**
     * @return mixed
     */
    public function getCourse()
    {
        return $this->Course;
    }

    /**
     * @param mixed $Course
     */
    public function setCourse($Course): void
    {
        $this->Course = $Course;
    }

}
