src/Entity/SetResult.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\SetResultRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use Symfony\Component\Serializer\Annotation\Groups;
  6. /**
  7.  * @ORM\Entity(repositoryClass=SetResultRepository::class)
  8.  */
  9. class SetResult
  10. {
  11.     /**
  12.      * @ORM\Id
  13.      * @ORM\GeneratedValue
  14.      * @ORM\Column(type="integer")
  15.      * @Groups({"round:list", "round:item","drawline:list", "drawline:item","event:item","event:list"})
  16.      */
  17.     private $id;
  18.     /**
  19.      * @ORM\Column(type="integer")
  20.      * @Groups({"round:list", "round:item","drawline:list", "drawline:item","event:item","event:list"})
  21.      */
  22.     private $gamesA;
  23.     /**
  24.      * @ORM\Column(type="integer")
  25.      * @Groups({"round:list", "round:item","drawline:list", "drawline:item","event:item","event:list"})
  26.      */
  27.     private $gamesB;
  28.     /**
  29.      * @ORM\Column(type="integer", nullable=true)
  30.      * @Groups({"round:list", "round:item","drawline:list", "drawline:item","event:item","event:list"})
  31.      */
  32.     private $tieBreakA;
  33.     /**
  34.      * @ORM\Column(type="integer", nullable=true)
  35.      * @Groups({"round:list", "round:item","drawline:list", "drawline:item","event:item","event:list"})
  36.      */
  37.     private $tieBreakB;
  38.     /**
  39.      * @ORM\ManyToOne(targetEntity=RoundResult::class, inversedBy="setResults")
  40.      * @ORM\JoinColumn(nullable=false)
  41.      */
  42.     private $roundResult;
  43.     public function getId(): ?int
  44.     {
  45.         return $this->id;
  46.     }
  47.     public function getGamesA(): ?int
  48.     {
  49.         return $this->gamesA;
  50.     }
  51.     public function setGamesA(int $gamesA): self
  52.     {
  53.         $this->gamesA $gamesA;
  54.         return $this;
  55.     }
  56.     public function getGamesB(): ?int
  57.     {
  58.         return $this->gamesB;
  59.     }
  60.     public function setGamesB(int $gamesB): self
  61.     {
  62.         $this->gamesB $gamesB;
  63.         return $this;
  64.     }
  65.     public function getTieBreakA(): ?int
  66.     {
  67.         return $this->tieBreakA;
  68.     }
  69.     public function setTieBreakA(?int $tieBreakA): self
  70.     {
  71.         $this->tieBreakA $tieBreakA;
  72.         return $this;
  73.     }
  74.     public function getTieBreakB(): ?int
  75.     {
  76.         return $this->tieBreakB;
  77.     }
  78.     public function setTieBreakB(?int $tieBreakB): self
  79.     {
  80.         $this->tieBreakB $tieBreakB;
  81.         return $this;
  82.     }
  83.     public function getRoundResult(): ?RoundResult
  84.     {
  85.         return $this->roundResult;
  86.     }
  87.     public function setRoundResult(?RoundResult $roundResult): self
  88.     {
  89.         $this->roundResult $roundResult;
  90.         return $this;
  91.     }
  92. }