<?php
namespace App\Entity;
use App\Repository\FixtureRepository;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Serializer\Annotation\Groups;
/**
* @ORM\Entity(repositoryClass=FixtureRepository::class)
*/
class Fixture
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
* @Groups({"round:list", "round:item","event:list","event:item"})
*/
private $id;
/**
* @ORM\Column(type="string", length=255)
* @Groups({"round:list", "round:item","event:list","event:item"})
*/
private $matchCode;
/**
* @ORM\ManyToOne(targetEntity=Round::class, inversedBy="fixtures", cascade={"persist"})
* @ORM\JoinColumn(nullable=false)
*/
private $round;
/**
* @ORM\OneToOne(targetEntity=RoundResult::class, cascade={"persist", "remove"})
* @ORM\JoinColumn(nullable=true)
* @Groups({"round:list", "round:item","event:list","event:item"})
*/
private $result;
/**
* @ORM\Column(type="string", length=255, nullable=true)
* @Groups({"round:list", "round:item","event:list","event:item"})
*/
private $topPlaceHolderText;
/**
* @ORM\Column(type="string", length=255, nullable=true)
* @Groups({"round:list", "round:item","event:list","event:item"})
*/
private $bottomPlaceHolderText;
/**
* @ORM\Column(type="boolean")
* @Groups({"round:list", "round:item","event:list","event:item"})
*/
private $isTopKnown;
/**
* @ORM\Column(type="boolean")
* @Groups({"round:list", "round:item","event:list","event:item"})
*/
private $isBottomKnown;
/**
* @ORM\Column(type="integer", nullable=true)
* @Groups({"round:list", "round:item","event:list","event:item"})
*/
private $winner;
/**
* @ORM\Column(type="string", length=255, nullable=true)
* @Groups({"round:list", "round:item","event:list","event:item"})
*/
private $resultString;
/**
* @ORM\OneToOne(targetEntity=DrawLine::class, inversedBy="fixture", cascade={"persist", "remove"})
* @ORM\JoinColumn(nullable=true)
* @Groups({"round:list", "round:item","event:list","event:item"})
*/
private $drawLineTop;
/**
* @ORM\OneToOne(targetEntity=DrawLine::class, inversedBy="fixture", cascade={"persist", "remove"})
* @ORM\JoinColumn(nullable=true)
* @Groups({"round:list", "round:item","event:list","event:item"})
*/
private $drawLineBottom;
/**
* @ORM\Column(type="boolean", nullable=true)
* @Groups({"round:list", "round:item","event:list","event:item"})
*/
private $isDoubles;
/**
* @ORM\Column(type="string", length=255, nullable=true)
* @Groups({"round:list", "round:item","event:list","event:item"})
*/
private $scoringType;
/**
* @ORM\Column(type="integer", nullable=true)
* @Groups({"round:list", "round:item","event:list","event:item"})
*/
private $numSet;
/**
* @ORM\Column(type="integer", nullable=true)
* @Groups({"round:list", "round:item","event:list","event:item"})
*/
private $courtSequence;
/**
* @ORM\Column(type="integer", nullable=true)
* @Groups({"round:list", "round:item","event:list","event:item"})
*/
private $day;
/**
* @ORM\Column(type="string", length=255, nullable=true)
* @Groups({"round:list", "round:item","event:list","event:item"})
*/
private $resultReason;
/**
* @ORM\Column(type="string", length=255, nullable=true)
* @Groups({"round:list", "round:item","event:list","event:item"})
*/
private $resultType;
/**
* @ORM\OneToOne(targetEntity=TeamPlayer::class, cascade={"persist", "remove"})
* @Groups({"round:list", "round:item","event:list","event:item"})
*/
private $teamTop;
/**
* @ORM\OneToOne(targetEntity=TeamPlayer::class, cascade={"persist", "remove"})
* @Groups({"round:list", "round:item","event:list","event:item"})
*/
private $teamBottom;
public function getId(): ?int
{
return $this->id;
}
public function getMatchCode(): ?string
{
return $this->matchCode;
}
public function setMatchCode(string $matchCode): self
{
$this->matchCode = $matchCode;
return $this;
}
public function getRound(): ?Round
{
return $this->round;
}
public function setRound(?Round $round): self
{
$this->round = $round;
return $this;
}
public function getResult(): ?RoundResult
{
return $this->result;
}
public function setResult(?RoundResult $result): self
{
$this->result = $result;
return $this;
}
public function getTopPlaceHolderText(): ?string
{
return $this->topPlaceHolderText;
}
public function setTopPlaceHolderText(?string $topPlaceHolderText): self
{
$this->topPlaceHolderText = $topPlaceHolderText;
return $this;
}
public function getBottomPlaceHolderText(): ?string
{
return $this->bottomPlaceHolderText;
}
public function setBottomPlaceHolderText(?string $bottomPlaceHolderText): self
{
$this->bottomPlaceHolderText = $bottomPlaceHolderText;
return $this;
}
public function isIsTopKnown(): ?bool
{
return $this->isTopKnown;
}
public function setIsTopKnown(bool $isTopKnown): self
{
$this->isTopKnown = $isTopKnown;
return $this;
}
public function isIsBottomKnown(): ?bool
{
return $this->isBottomKnown;
}
public function setIsBottomKnown(bool $isBottomKnown): self
{
$this->isBottomKnown = $isBottomKnown;
return $this;
}
public function getWinner(): ?int
{
return $this->winner;
}
public function setWinner(?int $winner): self
{
$this->winner = $winner;
return $this;
}
public function getResultString(): ?string
{
return $this->resultString;
}
public function setResultString(?string $resultString): self
{
$this->resultString = $resultString;
return $this;
}
public function getDrawLineTop(): ?DrawLine
{
return $this->drawLineTop;
}
public function setDrawLineTop(?DrawLine $drawLineTop): self
{
$this->drawLineTop = $drawLineTop;
return $this;
}
public function getDrawLineBottom(): ?DrawLine
{
return $this->drawLineBottom;
}
public function setDrawLineBottom(?DrawLine $drawLineBottom): self
{
$this->drawLineBottom = $drawLineBottom;
return $this;
}
public function getIsDoubles(): ?bool
{
return $this->isDoubles;
}
public function setIsDoubles(?bool $isDoubles): self
{
$this->isDoubles = $isDoubles;
return $this;
}
public function getScoringType(): ?string
{
return $this->scoringType;
}
public function setScoringType(?string $scoringType): self
{
$this->scoringType = $scoringType;
return $this;
}
public function getNumSet(): ?int
{
return $this->numSet;
}
public function setNumSet(?int $numSet): self
{
$this->numSet = $numSet;
return $this;
}
public function getCourtSequence(): ?int
{
return $this->courtSequence;
}
public function setCourtSequence(?int $courtSequence): self
{
$this->courtSequence = $courtSequence;
return $this;
}
public function getDay(): ?int
{
return $this->day;
}
public function setDay(?int $day): self
{
$this->day = $day;
return $this;
}
public function getResultReason(): ?string
{
return $this->resultReason;
}
public function setResultReason(?string $resultReason): self
{
$this->resultReason = $resultReason;
return $this;
}
public function getResultType(): ?string
{
return $this->resultType;
}
public function setResultType(?string $resultType): self
{
$this->resultType = $resultType;
return $this;
}
public function getTeamTop(): ?TeamPlayer
{
return $this->teamTop;
}
public function setTeamTop(?TeamPlayer $teamTop): self
{
$this->teamTop = $teamTop;
return $this;
}
public function getTeamBottom(): ?TeamPlayer
{
return $this->teamBottom;
}
public function setTeamBottom(?TeamPlayer $teamBottom): self
{
$this->teamBottom = $teamBottom;
return $this;
}
}