<?phpnamespace App\Entity;use App\Repository\SetRepository;use Doctrine\ORM\Mapping as ORM;use Symfony\Component\Serializer\Annotation\Groups;use Symfony\Component\Serializer\Annotation\Ignore;/** * @ORM\Entity(repositoryClass=SetRepository::class) * @ORM\Table(name="`set`") */class Set{ /** * @ORM\Id * @ORM\GeneratedValue * @ORM\Column(type="integer") * @Groups("atpmatch_result:list", "atpmatch_result:item") */ private $id; /** * @ORM\Column(type="integer") * @Groups({"atpmatch_result:list", "atpmatch_result:item"}) */ private $number; /** * @ORM\Column(type="integer") * @Groups({"atpmatch_result:list", "atpmatch_result:item"}) */ private $score; /** * @ORM\Column(type="integer", nullable=true) * @Groups({"atpmatch_result:list", "atpmatch_result:item"}) */ private $tieBreakScore; /** * @ORM\ManyToOne(targetEntity=TeamPlayer::class, inversedBy="sets") * @Ignore() */ private $teamPlayer; public function getId(): ?int { return $this->id; } public function getNumber(): ?int { return $this->number; } public function setNumber(int $number): self { $this->number = $number; return $this; } public function getScore(): ?int { return $this->score; } public function setScore(int $score): self { $this->score = $score; return $this; } public function getTieBreakScore(): ?int { return $this->tieBreakScore; } public function setTieBreakScore(?int $tieBreakScore): self { $this->tieBreakScore = $tieBreakScore; return $this; } public function getTeamPlayer(): ?TeamPlayer { return $this->teamPlayer; } public function setTeamPlayer(?TeamPlayer $teamPlayer): self { $this->teamPlayer = $teamPlayer; return $this; }}