<?php
namespace App\Entity;
use App\Repository\ResultRepository;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: ResultRepository::class)]
class Result
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
private ?int $id = null;
#[ORM\ManyToOne(inversedBy: 'results')]
#[ORM\JoinColumn(nullable: false)]
private ?Jury $jury = null;
#[ORM\ManyToOne(inversedBy: 'results')]
#[ORM\JoinColumn(nullable: false)]
private ?Team $team = null;
#[ORM\ManyToOne(inversedBy: 'results')]
#[ORM\JoinColumn(nullable: false)]
private ?Criterion $criterion = null;
#[ORM\Column]
private ?float $value = null;
#[ORM\ManyToOne(inversedBy: 'results')]
private ?MalusList $item = null;
public function getId(): ?int
{
return $this->id;
}
public function getJury(): ?Jury
{
return $this->jury;
}
public function setJury(?Jury $jury): self
{
$this->jury = $jury;
return $this;
}
public function getTeam(): ?Team
{
return $this->team;
}
public function setTeam(?Team $team): self
{
$this->team = $team;
return $this;
}
public function getCriterion(): ?Criterion
{
return $this->criterion;
}
public function setCriterion(?Criterion $criterion): self
{
$this->criterion = $criterion;
return $this;
}
public function getValue(): ?float
{
return $this->value;
}
public function setValue(float $value): self
{
$this->value = $value;
return $this;
}
public function getItem(): ?MalusList
{
return $this->item;
}
public function setItem(?MalusList $item): self
{
$this->item = $item;
return $this;
}
}