src/Entity/Mark.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\MarkRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * @ORM\Entity(repositoryClass=MarkRepository::class)
  7.  */
  8. class Mark
  9. {
  10.     /**
  11.      * @ORM\Id
  12.      * @ORM\GeneratedValue
  13.      * @ORM\Column(type="integer")
  14.      */
  15.     private $id;
  16.     /**
  17.      * @ORM\ManyToOne(targetEntity=Student::class)
  18.      * @ORM\JoinColumn(nullable=false)
  19.      */
  20.     private $student;
  21.     /**
  22.      * @ORM\ManyToOne(targetEntity=Evaluation::class, inversedBy="marks", cascade={"persist"})
  23.      * @ORM\JoinColumn(nullable=false)
  24.      */
  25.     private $evaluation;
  26.     /**
  27.      * @ORM\Column(type="float")
  28.      */
  29.     private $value;
  30.     /**
  31.      * @ORM\Column(type="integer")
  32.      */
  33.     private $weight;
  34.     /**
  35.      * @ORM\Column(type="integer", name="rank2",nullable=true)
  36.      */
  37.     private $rank2;
  38.     /**
  39.      * @ORM\Column(type="string", length=100, nullable=true)
  40.      */
  41.     private $appreciation;
  42.     public function getId(): ?int
  43.     {
  44.         return $this->id;
  45.     }
  46.     
  47.     public function getStudent(): ?Student
  48.     {
  49.         return $this->student;
  50.     }
  51.     public function setStudent(?Student $student): self
  52.     {
  53.         $this->student $student;
  54.         return $this;
  55.     }
  56.     public function getEvaluation(): ?Evaluation
  57.     {
  58.         return $this->evaluation;
  59.     }
  60.     public function setEvaluation(?Evaluation $evaluation): self
  61.     {
  62.         $this->evaluation $evaluation;
  63.         return $this;
  64.     }
  65.     public function getValue(): ?float
  66.     {
  67.         return $this->value;
  68.     }
  69.     public function setValue(float $value): self
  70.     {
  71.         $this->value $value;
  72.         return $this;
  73.     }
  74.     public function getWeight(): ?int
  75.     {
  76.         return $this->weight;
  77.     }
  78.     public function setWeight(int $weight): self
  79.     {
  80.         $this->weight $weight;
  81.         return $this;
  82.     }
  83.     public function getRank2(): ?int
  84.     {
  85.         return $this->rank2;
  86.     }
  87.     public function setRank2(?int $rank2): self
  88.     {
  89.         $this->rank2 $rank2;
  90.         return $this;
  91.     }
  92.     public function getAppreciation(): ?string
  93.     {
  94.         return $this->appreciation;
  95.     }
  96.     public function setAppreciation(?string $appreciation): self
  97.     {
  98.         $this->appreciation $appreciation;
  99.         return $this;
  100.     }
  101. }