| 1 | <?php |
||
| 14 | class Game |
||
| 15 | { |
||
| 16 | /** |
||
| 17 | * @ORM\Id |
||
| 18 | * @ORM\Column(type="integer") |
||
| 19 | * @ORM\GeneratedValue(strategy="AUTO") |
||
| 20 | */ |
||
| 21 | protected $id; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @return mixed |
||
| 25 | */ |
||
| 26 | public function getId() |
||
| 30 | |||
| 31 | /** |
||
| 32 | * @param mixed $id |
||
| 33 | */ |
||
| 34 | public function setId($id) |
||
| 38 | |||
| 39 | /** |
||
| 40 | * @var integer |
||
| 41 | * |
||
| 42 | * @ORM\Column(name="chat_id", type="bigint", nullable=false) |
||
| 43 | */ |
||
| 44 | public $chatId; |
||
| 45 | |||
| 46 | /** |
||
| 47 | * @ORM\OneToMany(targetEntity="Chrl\AppBundle\Entity\User", mappedBy="game") |
||
| 48 | */ |
||
| 49 | public $users; |
||
| 50 | /** |
||
| 51 | * @ORM\Column(name="status", type="smallint") |
||
| 52 | */ |
||
| 53 | public $status; |
||
| 54 | |||
| 55 | /** |
||
| 56 | * @ORM\Column(name="title", type="string") |
||
| 57 | */ |
||
| 58 | public $title; |
||
| 59 | /** |
||
| 60 | * @ORM\Column(type="string", nullable=true) |
||
| 61 | */ |
||
| 62 | public $publicLink; |
||
| 63 | /** |
||
| 64 | * @ORM\OneToMany(targetEntity="Chrl\AppBundle\Entity\Message", mappedBy="game") |
||
| 65 | */ |
||
| 66 | public $messages; |
||
| 67 | /** |
||
| 68 | * @ORM\Column(type="integer",nullable=true) |
||
| 69 | */ |
||
| 70 | public $lastQuestion; |
||
| 71 | /** |
||
| 72 | * @ORM\Column(type="datetime", nullable=true) |
||
| 73 | */ |
||
| 74 | public $lastQuestionTime; |
||
| 75 | |||
| 76 | /** |
||
| 77 | * @ORM\Column(type="smallint", nullable=true) |
||
| 78 | */ |
||
| 79 | public $incorrectTries; |
||
| 80 | |||
| 81 | /** |
||
| 82 | * @ORM\Column(type="string",nullable=true) |
||
| 83 | */ |
||
| 84 | public $hint; |
||
| 85 | } |
||
| 86 |