Completed
Push — master ( 0705fb...e13197 )
by Kirill
05:13
created

User::setChatId()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
c 0
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 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
     * @ORM\Id
53
     * @ORM\Column(type="integer")
54
     * @ORM\GeneratedValue(strategy="AUTO")
55
     */
56
    protected $id;
57
58
    /**
59
     * @var integer
60
     *
61
     * @ORM\Column(name="chat_id", type="bigint", nullable="false")
62
     */
63
    protected $chatId;
64
}
65