Completed
Push — master ( ff6c26...e00939 )
by Kirill
02:42
created

User   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 73
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 4
lcom 0
cbo 0
dl 0
loc 73
c 0
b 0
f 0
rs 10

4 Methods

Rating   Name   Duplication   Size   Complexity  
A getId() 0 4 1
A setId() 0 5 1
A getChatId() 0 4 1
A setChatId() 0 5 1
1
<?php
2
3
namespace Chrl\AppBundle\Entity;
4
5
use Doctrine\ORM\Mapping as ORM;
6
7
/**
8
 * Class User
9
 * @package AppBundle\Entity
10
 *
11
 * @ORM\Entity
12
 * @ORM\Table(name="user")
13
 */
14
class User
15
{
16
    /**
17
     * @return mixed
18
     */
19
    public function getId()
20
    {
21
        return $this->id;
22
    }
23
24
    /**
25
     * @param mixed $id
26
     * @return User
27
     */
28
    public function setId($id)
29
    {
30
        $this->id = $id;
31
        return $this;
32
    }
33
34
    /**
35
     * @return int
36
     */
37
    public function getChatId()
38
    {
39
        return $this->chatId;
40
    }
41
42
    /**
43
     * @param int $chatId
44
     * @return User
45
     */
46
    public function setChatId($chatId)
47
    {
48
        $this->chatId = $chatId;
49
        return $this;
50
    }
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