<?phpnamespace App\Entity;use App\Repository\MarkRepository;use Doctrine\ORM\Mapping as ORM;/** * @ORM\Entity(repositoryClass=MarkRepository::class) */class Mark{ /** * @ORM\Id * @ORM\GeneratedValue(strategy="AUTO") * @ORM\Column(type="integer") */ private $id; /** * @ORM\ManyToOne(targetEntity=Student::class) * @ORM\JoinColumn(nullable=false) */ private $student; /** * @ORM\ManyToOne(targetEntity=Evaluation::class, inversedBy="marks", cascade={"persist"}) * @ORM\JoinColumn(nullable=false) */ private $evaluation; /** * @ORM\Column(type="float") */ private $value; /** * @ORM\Column(type="integer") */ private $weight; /** * @ORM\Column(type="integer", name="rank2",nullable=true) */ private $rank2; /** * @ORM\Column(type="string", length=100, nullable=true) */ private $appreciation; public function getId(): ?int { return $this->id; } public function getStudent(): ?Student { return $this->student; } public function setStudent(?Student $student): self { $this->student = $student; return $this; } public function getEvaluation(): ?Evaluation { return $this->evaluation; } public function setEvaluation(?Evaluation $evaluation): self { $this->evaluation = $evaluation; return $this; } public function getValue(): ?float { return $this->value; } public function setValue(float $value): self { $this->value = $value; return $this; } public function getWeight(): ?int { return $this->weight; } public function setWeight(int $weight): self { $this->weight = $weight; return $this; } public function getRank2(): ?int { return $this->rank2; } public function setRank2(?int $rank2): self { $this->rank2 = $rank2; return $this; } public function getAppreciation(): ?string { return $this->appreciation; } public function setAppreciation(?string $appreciation): self { $this->appreciation = $appreciation; return $this; }}