src/Entity/RoundResult.php line 14

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\RoundResultRepository;
  4. use Doctrine\Common\Collections\ArrayCollection;
  5. use Doctrine\Common\Collections\Collection;
  6. use Doctrine\ORM\Mapping as ORM;
  7. use Symfony\Component\Serializer\Annotation\Groups;
  8. /**
  9.  * @ORM\Entity(repositoryClass=RoundResultRepository::class)
  10.  */
  11. class RoundResult
  12. {
  13.     /**
  14.      * @ORM\Id
  15.      * @ORM\GeneratedValue
  16.      * @ORM\Column(type="integer")
  17.      * @Groups({"round:list", "round:item","event:list","event:item"})
  18.      */
  19.     private $id;
  20.     /**
  21.      * @ORM\Column(type="string", length=255, nullable=true)
  22.      * @Groups({"round:list", "round:item","event:list","event:item"})
  23.      */
  24.     private $matchCode;
  25.     /**
  26.      * @ORM\Column(type="boolean", nullable=true)
  27.      * @Groups({"round:list", "round:item","event:list","event:item"})
  28.      *
  29.      */
  30.     private $isDoubles;
  31.     /**
  32.      * @ORM\Column(type="integer", nullable=true)
  33.      * @Groups({"round:list", "round:item","event:list","event:item"})
  34.      *
  35.      */
  36.     private $drawLineTop;
  37.     /**
  38.      * @ORM\Column(type="integer", nullable=true)
  39.      * @Groups({"round:list", "round:item","event:list","event:item"})
  40.      */
  41.     private $drawLineBottom;
  42.     /**
  43.      * @ORM\Column(type="string", length=255, nullable=true)
  44.      * @Groups({"round:list", "round:item","event:list","event:item"})
  45.      */
  46.     private $scoringType;
  47.     /**
  48.      * @ORM\Column(type="integer", nullable=true)
  49.      * @Groups({"round:list", "round:item","event:list","event:item"})
  50.      */
  51.     private $numSets;
  52.     /**
  53.      * @ORM\Column(type="integer", nullable=true)
  54.      * @Groups({"round:list", "round:item","event:list","event:item"})
  55.      */
  56.     private $courtSequence;
  57.     /**
  58.      * @ORM\Column(type="integer", nullable=true)
  59.      * @Groups({"round:list", "round:item","event:list","event:item"})
  60.      */
  61.     private $day;
  62.     /**
  63.      * @ORM\Column(type="integer", nullable=true)
  64.      * @Groups({"round:list", "round:item","event:list","event:item"})
  65.      */
  66.     private $winner;
  67.     /**
  68.      * @ORM\Column(type="string", length=255, nullable=true)
  69.      * @Groups({"round:list", "round:item","event:list","event:item"})
  70.      */
  71.     private $resultString;
  72.     /**
  73.      * @ORM\Column(type="string", length=255, nullable=true)
  74.      * @Groups({"round:list", "round:item","event:list","event:item"})
  75.      */
  76.     private $resultReason;
  77.     /**
  78.      * @ORM\Column(type="string", length=255, nullable=true)
  79.      * @Groups({"round:list", "round:item","event:list","event:item"})
  80.      */
  81.     private $resultType;
  82.     /**
  83.      * @ORM\ManyToOne(targetEntity=Umpire::class, inversedBy="aTPMatchResults")
  84.      * @Groups({"round:list", "round:item","event:list","event:item"})
  85.      */
  86.     private $umpire;
  87.     /**
  88.      * @ORM\Column(type="string", nullable=true)
  89.      * @Groups({"round:list", "round:item","event:list","event:item"})
  90.      */
  91.     private $matchTime;
  92.     /**
  93.      * @ORM\Column(type="integer", nullable=true)
  94.      * @Groups({"round:list", "round:item","event:list","event:item"})
  95.      */
  96.     private $numberOfSets;
  97.     /**
  98.      * @ORM\OneToOne(targetEntity=RoundResultTeam::class)
  99.      * @Groups({"round:list", "round:item","event:list","event:item"})
  100.      */
  101.     private $teamTop;
  102.     /**
  103.      * @ORM\OneToOne(targetEntity=RoundResultTeam::class)
  104.      * @Groups({"round:list", "round:item","event:list","event:item"})
  105.      */
  106.     private $teamBottom;
  107.     /**
  108.      * @ORM\OneToMany(targetEntity=SetResult::class, mappedBy="roundResult")
  109.      * @Groups({"round:list", "round:item","event:list","event:item"})
  110.      */
  111.     private $setResults;
  112.     public function __construct()
  113.     {
  114.         $this->setResults = new ArrayCollection();
  115.     }
  116.     public function getId(): ?int
  117.     {
  118.         return $this->id;
  119.     }
  120.     public function getMatchCode(): ?string
  121.     {
  122.         return $this->matchCode;
  123.     }
  124.     public function setMatchCode(?string $matchCode): self
  125.     {
  126.         $this->matchCode $matchCode;
  127.         return $this;
  128.     }
  129.     public function getUmpire(): ?Umpire
  130.     {
  131.         return $this->umpire;
  132.     }
  133.     public function setUmpire(?Umpire $umpire): self
  134.     {
  135.         $this->umpire $umpire;
  136.         return $this;
  137.     }
  138.     public function getMatchTime()
  139.     {
  140.         return $this->matchTime;
  141.     }
  142.     public function setMatchTime($matchTime): self
  143.     {
  144.         $this->matchTime $matchTime;
  145.         return $this;
  146.     }
  147.     public function getNumberOfSets(): ?int
  148.     {
  149.         return $this->numberOfSets;
  150.     }
  151.     public function setNumberOfSets(?int $numberOfSets): self
  152.     {
  153.         $this->numberOfSets $numberOfSets;
  154.         return $this;
  155.     }
  156.     /**
  157.      * @return Collection<int, SetResult>
  158.      */
  159.     public function getSetResults(): Collection
  160.     {
  161.         return $this->setResults;
  162.     }
  163.     public function addSetResult(SetResult $setResult): self
  164.     {
  165.         if (!$this->setResults->contains($setResult)) {
  166.             $this->setResults[] = $setResult;
  167.             $setResult->setRoundResult($this);
  168.         }
  169.         return $this;
  170.     }
  171.     public function removeSetResult(SetResult $setResult): self
  172.     {
  173.         if ($this->setResults->removeElement($setResult)) {
  174.             // set the owning side to null (unless already changed)
  175.             if ($setResult->getRoundResult() === $this) {
  176.                 $setResult->setRoundResult(null);
  177.             }
  178.         }
  179.         return $this;
  180.     }
  181.     /**
  182.      * @return mixed
  183.      */
  184.     public function getIsDoubles()
  185.     {
  186.         return $this->isDoubles;
  187.     }
  188.     /**
  189.      * @param mixed $isDoubles
  190.      */
  191.     public function setIsDoubles($isDoubles): void
  192.     {
  193.         $this->isDoubles $isDoubles;
  194.     }
  195.     /**
  196.      * @return mixed
  197.      */
  198.     public function getDrawLineTop()
  199.     {
  200.         return $this->drawLineTop;
  201.     }
  202.     /**
  203.      * @param mixed $drawLineTop
  204.      */
  205.     public function setDrawLineTop($drawLineTop): void
  206.     {
  207.         $this->drawLineTop $drawLineTop;
  208.     }
  209.     /**
  210.      * @return mixed
  211.      */
  212.     public function getDrawLineBottom()
  213.     {
  214.         return $this->drawLineBottom;
  215.     }
  216.     /**
  217.      * @param mixed $drawLineBottom
  218.      */
  219.     public function setDrawLineBottom($drawLineBottom): void
  220.     {
  221.         $this->drawLineBottom $drawLineBottom;
  222.     }
  223.     /**
  224.      * @return mixed
  225.      */
  226.     public function getScoringType()
  227.     {
  228.         return $this->scoringType;
  229.     }
  230.     /**
  231.      * @param mixed $scoringType
  232.      */
  233.     public function setScoringType($scoringType): void
  234.     {
  235.         $this->scoringType $scoringType;
  236.     }
  237.     /**
  238.      * @return mixed
  239.      */
  240.     public function getNumSets()
  241.     {
  242.         return $this->numSets;
  243.     }
  244.     /**
  245.      * @param mixed $numSets
  246.      */
  247.     public function setNumSets($numSets): void
  248.     {
  249.         $this->numSets $numSets;
  250.     }
  251.     /**
  252.      * @return mixed
  253.      */
  254.     public function getCourtSequence()
  255.     {
  256.         return $this->courtSequence;
  257.     }
  258.     /**
  259.      * @param mixed $courtSequence
  260.      */
  261.     public function setCourtSequence($courtSequence): void
  262.     {
  263.         $this->courtSequence $courtSequence;
  264.     }
  265.     /**
  266.      * @return mixed
  267.      */
  268.     public function getDay()
  269.     {
  270.         return $this->day;
  271.     }
  272.     /**
  273.      * @param mixed $day
  274.      */
  275.     public function setDay($day): void
  276.     {
  277.         $this->day $day;
  278.     }
  279.     /**
  280.      * @return mixed
  281.      */
  282.     public function getWinner()
  283.     {
  284.         return $this->winner;
  285.     }
  286.     /**
  287.      * @param mixed $winner
  288.      */
  289.     public function setWinner($winner): void
  290.     {
  291.         $this->winner $winner;
  292.     }
  293.     /**
  294.      * @return mixed
  295.      */
  296.     public function getResultString()
  297.     {
  298.         return $this->resultString;
  299.     }
  300.     /**
  301.      * @param mixed $resultString
  302.      */
  303.     public function setResultString($resultString): void
  304.     {
  305.         $this->resultString $resultString;
  306.     }
  307.     /**
  308.      * @return mixed
  309.      */
  310.     public function getResultReason()
  311.     {
  312.         return $this->resultReason;
  313.     }
  314.     /**
  315.      * @param mixed $resultReason
  316.      */
  317.     public function setResultReason($resultReason): void
  318.     {
  319.         $this->resultReason $resultReason;
  320.     }
  321.     /**
  322.      * @return mixed
  323.      */
  324.     public function getResultType()
  325.     {
  326.         return $this->resultType;
  327.     }
  328.     /**
  329.      * @param mixed $resultType
  330.      */
  331.     public function setResultType($resultType): void
  332.     {
  333.         $this->resultType $resultType;
  334.     }
  335.     /**
  336.      * @return mixed
  337.      */
  338.     public function getTeamTop()
  339.     {
  340.         return $this->teamTop;
  341.     }
  342.     /**
  343.      * @param mixed $teamTop
  344.      */
  345.     public function setTeamTop($teamTop): void
  346.     {
  347.         $this->teamTop $teamTop;
  348.     }
  349.     /**
  350.      * @return mixed
  351.      */
  352.     public function getTeamBottom()
  353.     {
  354.         return $this->teamBottom;
  355.     }
  356.     /**
  357.      * @param mixed $teamBottom
  358.      */
  359.     public function setTeamBottom($teamBottom): void
  360.     {
  361.         $this->teamBottom $teamBottom;
  362.     }
  363. }