src/Entity/Set.php line 14

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\SetRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use Symfony\Component\Serializer\Annotation\Groups;
  6. use Symfony\Component\Serializer\Annotation\Ignore;
  7. /**
  8.  * @ORM\Entity(repositoryClass=SetRepository::class)
  9.  * @ORM\Table(name="`set`")
  10.  */
  11. class Set
  12. {
  13.     /**
  14.      * @ORM\Id
  15.      * @ORM\GeneratedValue
  16.      * @ORM\Column(type="integer")
  17.      *  @Groups("atpmatch_result:list", "atpmatch_result:item")
  18.      */
  19.     private $id;
  20.     /**
  21.      * @ORM\Column(type="integer")
  22.      * @Groups({"atpmatch_result:list", "atpmatch_result:item"})
  23.      */
  24.     private $number;
  25.     /**
  26.      * @ORM\Column(type="integer")
  27.      * @Groups({"atpmatch_result:list", "atpmatch_result:item"})
  28.      */
  29.     private $score;
  30.     /**
  31.      * @ORM\Column(type="integer", nullable=true)
  32.      * @Groups({"atpmatch_result:list", "atpmatch_result:item"})
  33.      */
  34.     private $tieBreakScore;
  35.     /**
  36.      * @ORM\ManyToOne(targetEntity=TeamPlayer::class, inversedBy="sets")
  37.      * @Ignore()
  38.      */
  39.     private $teamPlayer;
  40.     public function getId(): ?int
  41.     {
  42.         return $this->id;
  43.     }
  44.     public function getNumber(): ?int
  45.     {
  46.         return $this->number;
  47.     }
  48.     public function setNumber(int $number): self
  49.     {
  50.         $this->number $number;
  51.         return $this;
  52.     }
  53.     public function getScore(): ?int
  54.     {
  55.         return $this->score;
  56.     }
  57.     public function setScore(int $score): self
  58.     {
  59.         $this->score $score;
  60.         return $this;
  61.     }
  62.     public function getTieBreakScore(): ?int
  63.     {
  64.         return $this->tieBreakScore;
  65.     }
  66.     public function setTieBreakScore(?int $tieBreakScore): self
  67.     {
  68.         $this->tieBreakScore $tieBreakScore;
  69.         return $this;
  70.     }
  71.     public function getTeamPlayer(): ?TeamPlayer
  72.     {
  73.         return $this->teamPlayer;
  74.     }
  75.     public function setTeamPlayer(?TeamPlayer $teamPlayer): self
  76.     {
  77.         $this->teamPlayer $teamPlayer;
  78.         return $this;
  79.     }
  80. }