Completed
Push — develop ( e7f0df...adc625 )
by Marek
02:45
created

UserRelation::setType()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 6
rs 9.4285
cc 1
eloc 3
nc 1
nop 1
1
<?php
2
namespace AppBundle\Entity;
3
4
/**
5
 * User relation
6
 */
7
class UserRelation extends AbstractEntity
8
{
9
    const TYPE_BOOK         = 1;
10
    const TYPE_FOOK         = -1;
11
    const TYPE_FRIEND       = 2;
12
    const TYPE_IGNORE       = -2;
13
    const TYPE_IGNORE_MAIL  = -3;
14
15
    //region Column properties
16
17
    /** @var integer */
18
    protected $id;
19
20
    /** @var integer */
21
    protected $userId;
22
23
    /** @var integer */
24
    protected $nodeId;
25
26
    /** @var integer */
27
    protected $type;
28
29
    //endregion
30
31
    //region Association properties
32
33
    //endregion
34
35
    //region Column methods
36
37
    public function getId()
38
    {
39
        return $this->id;
40
    }
41
42
    public function getUserId()
43
    {
44
        return $this->userId;
45
    }
46
47
    public function setUserId($userId)
48
    {
49
        $this->userId = $userId;
50
51
        return $this;
52
    }
53
54
    public function getNodeId()
55
    {
56
        return $this->nodeId;
57
    }
58
59
    public function setNodeId($nodeId)
60
    {
61
        $this->nodeId = $nodeId;
62
63
        return $this;
64
    }
65
66
    public function getType()
67
    {
68
        return $this->type;
69
    }
70
71
    public function setType($type)
72
    {
73
        $this->type = $type;
74
75
        return $this;
76
    }
77
78
    //endregion
79
80
    //region Association methods
81
82
    //endregion
83
84
    //region Custom methods
85
86
    //endregion
87
}
88