Completed
Push — master ( 7eab9c...12e0d4 )
by Kirill
02:03
created

Game::setChatId()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 5
rs 9.4285
cc 1
eloc 3
nc 1
nop 1
1
<?php
2
3
namespace AppBundle\Entity;
4
5
use Doctrine\ORM\Mapping as ORM;
6
7
/**
8
 * Class Game
9
 * @package AppBundle\Entity
10
 *
11
 * @ORM\Entity
12
 * @ORM\Table(name="game")
13
 */
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
     * @var integer
25
     *
26
     * @ORM\Column(name="chat_id", type="bigint", nullable=false)
27
     */
28
    protected $chatId;
29
30
    /**
31
     * @ORM\OneToMany(targetEntity="AppBundle\Entity\User", mappedBy="gameId")
32
     */
33
    public $users;
34
}
35