src/Entity/ATPMatchResult.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\ATPMatchResultRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use Symfony\Component\Serializer\Annotation\Groups;
  6. /**
  7.  * @ORM\Entity(repositoryClass=ATPMatchResultRepository::class)
  8.  */
  9. class ATPMatchResult
  10. {
  11.     /**
  12.      * @ORM\Id
  13.      * @ORM\GeneratedValue
  14.      * @ORM\Column(type="integer")
  15.      * @Groups("atpmatch_result:list", "atpmatch_result:item", "atpmatch_result:list", "atpmatch_result:item")
  16.      */
  17.     private $id;
  18.     /**
  19.      * @ORM\Column(type="string", length=255, nullable=true)
  20.      * @Groups({"atpmatch_result:list", "atpmatch_result:item","round:list", "round:item"})
  21.      */
  22.     private $matchId;
  23.     /**
  24.      * @ORM\ManyToOne(targetEntity=Umpire::class, inversedBy="aTPMatchResults")
  25.      * @Groups({"atpmatch_result:list", "atpmatch_result:item","round:list", "round:item"})
  26.      */
  27.     private $umpire;
  28.     /**
  29.      * @ORM\Column(type="integer", nullable=true)
  30.      * @Groups({"atpmatch_result:list", "atpmatch_result:item","round:list", "round:item"})
  31.      */
  32.     private $DateSeq;
  33.     /**
  34.      * @ORM\ManyToOne(targetEntity=Court::class, inversedBy="aTPMatchResults")
  35.      * @Groups({"atpmatch_result:list", "atpmatch_result:item","round:list", "round:item"})
  36.      */
  37.     private $court;
  38.     /**
  39.      * @ORM\Column(type="string", length=255, nullable=true)
  40.      * @Groups({"atpmatch_result:list", "atpmatch_result:item","round:list", "round:item"})
  41.      */
  42.     private $roundShortName;
  43.     /**
  44.      * @ORM\Column(type="string", length=255, nullable=true)
  45.      * @Groups({"atpmatch_result:list", "atpmatch_result:item","round:list", "round:item"})
  46.      */
  47.     private $roundLongName;
  48.     /**
  49.      * @ORM\Column(type="integer", nullable=true)
  50.      * @Groups({"atpmatch_result:list", "atpmatch_result:item","round:list", "round:item"})
  51.      */
  52.     private $numberOfSets;
  53.     /**
  54.      * @ORM\Column(type="string", length=255, nullable=true)
  55.      * @Groups({"atpmatch_result:list", "atpmatch_result:item", "atpmatch_result:list", "atpmatch_result:item"})
  56.      */
  57.     private $status;
  58.     /**
  59.      * @ORM\Column(type="string", length=255, nullable=true)
  60.      * @Groups({"atpmatch_result:list", "atpmatch_result:item","round:list", "round:item"})
  61.      */
  62.     private $winnerPlayerId;
  63.     /**
  64.      * @ORM\Column(type="string", length=255, nullable=true)
  65.      * @Groups({"atpmatch_result:list", "atpmatch_result:item","round:list", "round:item"})
  66.      */
  67.     private $reason;
  68.     /**
  69.      * @ORM\Column(type="string", length=255, nullable=true)
  70.      * @Groups({"atpmatch_result:list", "atpmatch_result:item","round:list", "round:item"})
  71.      */
  72.     private $result;
  73.     /**
  74.      * @ORM\Column(type="string", length=255, nullable=true)
  75.      * @Groups({"atpmatch_result:list", "atpmatch_result:item","round:list", "round:item"})
  76.      */
  77.     private $serve;
  78.     /**
  79.      * @ORM\Column(type="string", length=255, nullable=true)
  80.      * @Groups({"atpmatch_result:list", "atpmatch_result:item","round:list", "round:item"})
  81.      */
  82.     private $matchDate;
  83.     /**
  84.      * @ORM\Column(type="string", length=255, nullable=true)
  85.      * @Groups({"atpmatch_result:list", "atpmatch_result:item","round:list", "round:item"})
  86.      */
  87.     private $matchTime;
  88.     /**
  89.      * @ORM\ManyToOne(targetEntity=TeamPlayer::class, inversedBy="aTPMatchResults")
  90.      * @Groups({"atpmatch_result:list", "atpmatch_result:item", "round:list", "round:item"})
  91.      */
  92.     private $playerTeam1;
  93.     /**
  94.      * @ORM\ManyToOne(targetEntity=TeamPlayer::class, inversedBy="atPMatchResults2")
  95.      * @Groups({"atpmatch_result:list", "atpmatch_result:item","round:list", "round:item"})
  96.      */
  97.     private $playerTeam2;
  98.     public function getId(): ?int
  99.     {
  100.         return $this->id;
  101.     }
  102.     public function getMatchId(): ?string
  103.     {
  104.         return $this->matchId;
  105.     }
  106.     public function setMatchId(?string $matchId): self
  107.     {
  108.         $this->matchId $matchId;
  109.         return $this;
  110.     }
  111.     public function getUmpire(): ?Umpire
  112.     {
  113.         return $this->umpire;
  114.     }
  115.     public function setUmpire(?Umpire $umpire): self
  116.     {
  117.         $this->umpire $umpire;
  118.         return $this;
  119.     }
  120.     public function getDateSeq(): ?int
  121.     {
  122.         return $this->DateSeq;
  123.     }
  124.     public function setDateSeq(?int $DateSeq): self
  125.     {
  126.         $this->DateSeq $DateSeq;
  127.         return $this;
  128.     }
  129.     public function getMatchDate(): ?string
  130.     {
  131.         return $this->matchDate;
  132.     }
  133.     public function setMatchDate(?string $matchDate): self
  134.     {
  135.         $this->matchDate $matchDate;
  136.         return $this;
  137.     }
  138.     public function getCourt(): ?Court
  139.     {
  140.         return $this->court;
  141.     }
  142.     public function setCourt(?Court $court): self
  143.     {
  144.         $this->court $court;
  145.         return $this;
  146.     }
  147.     public function getRoundShortName(): ?string
  148.     {
  149.         return $this->roundShortName;
  150.     }
  151.     public function setRoundShortName(?string $roundShortName): self
  152.     {
  153.         $this->roundShortName $roundShortName;
  154.         return $this;
  155.     }
  156.     public function getRoundLongName(): ?string
  157.     {
  158.         return $this->roundLongName;
  159.     }
  160.     public function setRoundLongName(?string $roundLongName): self
  161.     {
  162.         $this->roundLongName $roundLongName;
  163.         return $this;
  164.     }
  165.     public function getMatchTime(): ?string
  166.     {
  167.         return $this->matchTime;
  168.     }
  169.     public function setMatchTime(?string $matchTime): self
  170.     {
  171.         $this->matchTime $matchTime;
  172.         return $this;
  173.     }
  174.     public function getNumberOfSets(): ?int
  175.     {
  176.         return $this->numberOfSets;
  177.     }
  178.     public function setNumberOfSets(?int $numberOfSets): self
  179.     {
  180.         $this->numberOfSets $numberOfSets;
  181.         return $this;
  182.     }
  183.     public function getStatus(): ?string
  184.     {
  185.         return $this->status;
  186.     }
  187.     public function setStatus(?string $status): self
  188.     {
  189.         $this->status $status;
  190.         return $this;
  191.     }
  192.     public function getWinnerPlayerId(): ?string
  193.     {
  194.         return $this->winnerPlayerId;
  195.     }
  196.     public function setWinnerPlayerId(?string $winnerPlayerId): self
  197.     {
  198.         $this->winnerPlayerId $winnerPlayerId;
  199.         return $this;
  200.     }
  201.     public function getReason(): ?string
  202.     {
  203.         return $this->reason;
  204.     }
  205.     public function setReason(string $reason): self
  206.     {
  207.         $this->reason $reason;
  208.         return $this;
  209.     }
  210.     public function getResult(): ?string
  211.     {
  212.         return $this->result;
  213.     }
  214.     public function setResult(?string $result): self
  215.     {
  216.         $this->result $result;
  217.         return $this;
  218.     }
  219.     public function getServe(): ?string
  220.     {
  221.         return $this->serve;
  222.     }
  223.     public function setServe(?string $serve): self
  224.     {
  225.         $this->serve $serve;
  226.         return $this;
  227.     }
  228.     public function getPlayerTeam1(): ?TeamPlayer
  229.     {
  230.         return $this->playerTeam1;
  231.     }
  232.     public function setPlayerTeam1(?TeamPlayer $playerTeam1): self
  233.     {
  234.         $this->playerTeam1 $playerTeam1;
  235.         return $this;
  236.     }
  237.     public function getPlayerTeam2(): ?TeamPlayer
  238.     {
  239.         return $this->playerTeam2;
  240.     }
  241.     public function setPlayerTeam2(?TeamPlayer $playerTeam2): self
  242.     {
  243.         $this->playerTeam2 $playerTeam2;
  244.         return $this;
  245.     }
  246. }