src/Entity/RoundResultTeam.php line 14

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\RoundResultTeamRepository;
  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=RoundResultTeamRepository::class)
  10.  */
  11. class RoundResultTeam
  12. {
  13.     /**
  14.      * @ORM\Id
  15.      * @ORM\GeneratedValue
  16.      * @ORM\Column(type="integer")
  17.      * @Groups("round:list", "round:item","drawline:list", "drawline:item","event:list", "event:item")
  18.      */
  19.     private $id;
  20.     /**
  21.      * @ORM\ManyToOne(targetEntity=Player::class, inversedBy="roundResultTeamPlayer")
  22.      * @Groups({"round:item", "round:list","event:list", "event:item"})
  23.      */
  24.     private $player;
  25.     /**
  26.      * @ORM\ManyToOne(targetEntity=Player::class, inversedBy="roundResultTeamPartner")
  27.      * @Groups({"round:item", "round:list","event:list", "event:item"})
  28.      */
  29.     private $partner;
  30.     public function getId(): ?int
  31.     {
  32.         return $this->id;
  33.     }
  34.     /**
  35.      * @return mixed
  36.      */
  37.     public function getPlayer()
  38.     {
  39.         return $this->player;
  40.     }
  41.     /**
  42.      * @param mixed $player
  43.      */
  44.     public function setPlayer($player): void
  45.     {
  46.         $this->player $player;
  47.     }
  48.     /**
  49.      * @return mixed
  50.      */
  51.     public function getPartner()
  52.     {
  53.         return $this->partner;
  54.     }
  55.     /**
  56.      * @param mixed $partner
  57.      */
  58.     public function setPartner($partner): void
  59.     {
  60.         $this->partner $partner;
  61.     }
  62. }