<?php
namespace App\Entity;
use App\Repository\ATPMatchResultRepository;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Serializer\Annotation\Groups;
/**
* @ORM\Entity(repositoryClass=ATPMatchResultRepository::class)
*/
class ATPMatchResult
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
* @Groups("atpmatch_result:list", "atpmatch_result:item", "atpmatch_result:list", "atpmatch_result:item")
*/
private $id;
/**
* @ORM\Column(type="string", length=255, nullable=true)
* @Groups({"atpmatch_result:list", "atpmatch_result:item","round:list", "round:item"})
*/
private $matchId;
/**
* @ORM\ManyToOne(targetEntity=Umpire::class, inversedBy="aTPMatchResults")
* @Groups({"atpmatch_result:list", "atpmatch_result:item","round:list", "round:item"})
*/
private $umpire;
/**
* @ORM\Column(type="integer", nullable=true)
* @Groups({"atpmatch_result:list", "atpmatch_result:item","round:list", "round:item"})
*/
private $DateSeq;
/**
* @ORM\ManyToOne(targetEntity=Court::class, inversedBy="aTPMatchResults")
* @Groups({"atpmatch_result:list", "atpmatch_result:item","round:list", "round:item"})
*/
private $court;
/**
* @ORM\Column(type="string", length=255, nullable=true)
* @Groups({"atpmatch_result:list", "atpmatch_result:item","round:list", "round:item"})
*/
private $roundShortName;
/**
* @ORM\Column(type="string", length=255, nullable=true)
* @Groups({"atpmatch_result:list", "atpmatch_result:item","round:list", "round:item"})
*/
private $roundLongName;
/**
* @ORM\Column(type="integer", nullable=true)
* @Groups({"atpmatch_result:list", "atpmatch_result:item","round:list", "round:item"})
*/
private $numberOfSets;
/**
* @ORM\Column(type="string", length=255, nullable=true)
* @Groups({"atpmatch_result:list", "atpmatch_result:item", "atpmatch_result:list", "atpmatch_result:item"})
*/
private $status;
/**
* @ORM\Column(type="string", length=255, nullable=true)
* @Groups({"atpmatch_result:list", "atpmatch_result:item","round:list", "round:item"})
*/
private $winnerPlayerId;
/**
* @ORM\Column(type="string", length=255, nullable=true)
* @Groups({"atpmatch_result:list", "atpmatch_result:item","round:list", "round:item"})
*/
private $reason;
/**
* @ORM\Column(type="string", length=255, nullable=true)
* @Groups({"atpmatch_result:list", "atpmatch_result:item","round:list", "round:item"})
*/
private $result;
/**
* @ORM\Column(type="string", length=255, nullable=true)
* @Groups({"atpmatch_result:list", "atpmatch_result:item","round:list", "round:item"})
*/
private $serve;
/**
* @ORM\Column(type="string", length=255, nullable=true)
* @Groups({"atpmatch_result:list", "atpmatch_result:item","round:list", "round:item"})
*/
private $matchDate;
/**
* @ORM\Column(type="string", length=255, nullable=true)
* @Groups({"atpmatch_result:list", "atpmatch_result:item","round:list", "round:item"})
*/
private $matchTime;
/**
* @ORM\ManyToOne(targetEntity=TeamPlayer::class, inversedBy="aTPMatchResults")
* @Groups({"atpmatch_result:list", "atpmatch_result:item", "round:list", "round:item"})
*/
private $playerTeam1;
/**
* @ORM\ManyToOne(targetEntity=TeamPlayer::class, inversedBy="atPMatchResults2")
* @Groups({"atpmatch_result:list", "atpmatch_result:item","round:list", "round:item"})
*/
private $playerTeam2;
public function getId(): ?int
{
return $this->id;
}
public function getMatchId(): ?string
{
return $this->matchId;
}
public function setMatchId(?string $matchId): self
{
$this->matchId = $matchId;
return $this;
}
public function getUmpire(): ?Umpire
{
return $this->umpire;
}
public function setUmpire(?Umpire $umpire): self
{
$this->umpire = $umpire;
return $this;
}
public function getDateSeq(): ?int
{
return $this->DateSeq;
}
public function setDateSeq(?int $DateSeq): self
{
$this->DateSeq = $DateSeq;
return $this;
}
public function getMatchDate(): ?string
{
return $this->matchDate;
}
public function setMatchDate(?string $matchDate): self
{
$this->matchDate = $matchDate;
return $this;
}
public function getCourt(): ?Court
{
return $this->court;
}
public function setCourt(?Court $court): self
{
$this->court = $court;
return $this;
}
public function getRoundShortName(): ?string
{
return $this->roundShortName;
}
public function setRoundShortName(?string $roundShortName): self
{
$this->roundShortName = $roundShortName;
return $this;
}
public function getRoundLongName(): ?string
{
return $this->roundLongName;
}
public function setRoundLongName(?string $roundLongName): self
{
$this->roundLongName = $roundLongName;
return $this;
}
public function getMatchTime(): ?string
{
return $this->matchTime;
}
public function setMatchTime(?string $matchTime): self
{
$this->matchTime = $matchTime;
return $this;
}
public function getNumberOfSets(): ?int
{
return $this->numberOfSets;
}
public function setNumberOfSets(?int $numberOfSets): self
{
$this->numberOfSets = $numberOfSets;
return $this;
}
public function getStatus(): ?string
{
return $this->status;
}
public function setStatus(?string $status): self
{
$this->status = $status;
return $this;
}
public function getWinnerPlayerId(): ?string
{
return $this->winnerPlayerId;
}
public function setWinnerPlayerId(?string $winnerPlayerId): self
{
$this->winnerPlayerId = $winnerPlayerId;
return $this;
}
public function getReason(): ?string
{
return $this->reason;
}
public function setReason(string $reason): self
{
$this->reason = $reason;
return $this;
}
public function getResult(): ?string
{
return $this->result;
}
public function setResult(?string $result): self
{
$this->result = $result;
return $this;
}
public function getServe(): ?string
{
return $this->serve;
}
public function setServe(?string $serve): self
{
$this->serve = $serve;
return $this;
}
public function getPlayerTeam1(): ?TeamPlayer
{
return $this->playerTeam1;
}
public function setPlayerTeam1(?TeamPlayer $playerTeam1): self
{
$this->playerTeam1 = $playerTeam1;
return $this;
}
public function getPlayerTeam2(): ?TeamPlayer
{
return $this->playerTeam2;
}
public function setPlayerTeam2(?TeamPlayer $playerTeam2): self
{
$this->playerTeam2 = $playerTeam2;
return $this;
}
}