<?php
namespace App\Entity;
use App\Repository\SetResultRepository;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Serializer\Annotation\Groups;
/**
* @ORM\Entity(repositoryClass=SetResultRepository::class)
*/
class SetResult
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
* @Groups({"round:list", "round:item","drawline:list", "drawline:item","event:item","event:list"})
*/
private $id;
/**
* @ORM\Column(type="integer")
* @Groups({"round:list", "round:item","drawline:list", "drawline:item","event:item","event:list"})
*/
private $gamesA;
/**
* @ORM\Column(type="integer")
* @Groups({"round:list", "round:item","drawline:list", "drawline:item","event:item","event:list"})
*/
private $gamesB;
/**
* @ORM\Column(type="integer", nullable=true)
* @Groups({"round:list", "round:item","drawline:list", "drawline:item","event:item","event:list"})
*/
private $tieBreakA;
/**
* @ORM\Column(type="integer", nullable=true)
* @Groups({"round:list", "round:item","drawline:list", "drawline:item","event:item","event:list"})
*/
private $tieBreakB;
/**
* @ORM\ManyToOne(targetEntity=RoundResult::class, inversedBy="setResults")
* @ORM\JoinColumn(nullable=false)
*/
private $roundResult;
public function getId(): ?int
{
return $this->id;
}
public function getGamesA(): ?int
{
return $this->gamesA;
}
public function setGamesA(int $gamesA): self
{
$this->gamesA = $gamesA;
return $this;
}
public function getGamesB(): ?int
{
return $this->gamesB;
}
public function setGamesB(int $gamesB): self
{
$this->gamesB = $gamesB;
return $this;
}
public function getTieBreakA(): ?int
{
return $this->tieBreakA;
}
public function setTieBreakA(?int $tieBreakA): self
{
$this->tieBreakA = $tieBreakA;
return $this;
}
public function getTieBreakB(): ?int
{
return $this->tieBreakB;
}
public function setTieBreakB(?int $tieBreakB): self
{
$this->tieBreakB = $tieBreakB;
return $this;
}
public function getRoundResult(): ?RoundResult
{
return $this->roundResult;
}
public function setRoundResult(?RoundResult $roundResult): self
{
$this->roundResult = $roundResult;
return $this;
}
}