| 1 | <?php |
||
| 12 | class User extends BaseUser |
||
| 13 | {
|
||
| 14 | /** |
||
| 15 | * @var int |
||
| 16 | * |
||
| 17 | * @ORM\Id |
||
| 18 | * @ORM\Column(type="integer") |
||
| 19 | * @ORM\GeneratedValue |
||
| 20 | */ |
||
| 21 | protected $id; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @var string |
||
| 25 | * |
||
| 26 | * @ORM\Column(type="string", nullable=true) |
||
| 27 | */ |
||
| 28 | protected $google_id; |
||
| 29 | |||
| 30 | /** |
||
| 31 | * @var string |
||
| 32 | * |
||
| 33 | * @ORM\Column(type="string", nullable=true) |
||
| 34 | */ |
||
| 35 | protected $google_access_token; |
||
| 36 | |||
| 37 | /** |
||
| 38 | * @var Player |
||
| 39 | * |
||
| 40 | * @ORM\OneToOne(targetEntity="OSS\CoreBundle\Entity\Player") |
||
| 41 | */ |
||
| 42 | protected $player; |
||
| 43 | |||
| 44 | /** |
||
| 45 | * @param string $google_id |
||
| 46 | */ |
||
| 47 | public function setGoogleId($google_id) |
||
| 51 | |||
| 52 | /** |
||
| 53 | * @param string $google_access_token |
||
| 54 | */ |
||
| 55 | public function setGoogleAccessToken($google_access_token) |
||
| 59 | |||
| 60 | /** |
||
| 61 | * @param Player $player |
||
| 62 | */ |
||
| 63 | public function setPlayer(Player $player) |
||
| 67 | |||
| 68 | /** |
||
| 69 | * @return Player |
||
| 70 | */ |
||
| 71 | public function getPlayer() |
||
| 75 | } |
||
| 76 |