| 1 | <?php |
||
| 14 | class User |
||
| 15 | { |
||
| 16 | /** |
||
| 17 | * @return mixed |
||
| 18 | */ |
||
| 19 | public function getId() |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @param mixed $id |
||
| 26 | * @return User |
||
| 27 | */ |
||
| 28 | public function setId($id) |
||
| 33 | |||
| 34 | /** |
||
| 35 | * @return int |
||
| 36 | */ |
||
| 37 | public function getChatId() |
||
| 41 | |||
| 42 | /** |
||
| 43 | * @param int $chatId |
||
| 44 | * @return User |
||
| 45 | */ |
||
| 46 | public function setChatId($chatId) |
||
| 51 | |||
| 52 | /** |
||
| 53 | * @ORM\Id |
||
| 54 | * @ORM\Column(type="integer") |
||
| 55 | * @ORM\GeneratedValue(strategy="AUTO") |
||
| 56 | */ |
||
| 57 | protected $id; |
||
| 58 | |||
| 59 | /** |
||
| 60 | * @var integer |
||
| 61 | * |
||
| 62 | * @ORM\Column(name="chat_id", type="bigint", nullable=false) |
||
| 63 | */ |
||
| 64 | protected $chatId; |
||
| 65 | /** |
||
| 66 | * @var string |
||
| 67 | * |
||
| 68 | * @ORM\Column(name="name", type="text") |
||
| 69 | */ |
||
| 70 | protected $name; |
||
| 71 | |||
| 72 | |||
| 73 | /** |
||
| 74 | * @var integer |
||
| 75 | * |
||
| 76 | * @ORM\Column(name="points", type="bigint") |
||
| 77 | */ |
||
| 78 | protected $points; |
||
| 79 | |||
| 80 | /** |
||
| 81 | * @var integer |
||
| 82 | * |
||
| 83 | * @ORM\ManyToOne(targetEntity="Chrl\AppBundle\Entity\Game", inversedBy="users") |
||
| 84 | */ |
||
| 85 | public $gameId; |
||
| 86 | } |
||
| 87 |