NestedSetTrait::setRight()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 5
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 1
1
<?php
2
/**
3
 * @company MTE Telecom, Ltd.
4
 * @author Roman Malashin <[email protected]>
5
 */
6
7
namespace Nnx\DataGrid\Entity;
8
9
use Doctrine\ORM\Mapping\Column;
10
11
/**
12
 * Trait NestedSetTrait
13
 * @package Nnx\DataGrid\Entity
14
 */
15
trait NestedSetTrait
16
{
17
    /**
18
     * @var int
19
     *
20
     * @Column(name="lft", type="integer", nullable=true)
21
     *
22
     */
23
    protected $left;
24
25
    /**
26
     * @var int
27
     *
28
     * @Column(name="rgt", type="integer", nullable=true)
29
     */
30
    protected $right;
31
32
    /**
33
     * @var int
34
     *
35
     * @Column(name="level", type="integer",  nullable=true)
36
     */
37
    protected $level;
38
39
    /**
40
     * @return int
41
     */
42
    public function getLeft()
43
    {
44
        return $this->left;
45
    }
46
47
    /**
48
     * @param int $left
49
     * @return $this
50
     */
51
    public function setLeft($left)
52
    {
53
        $this->left = $left;
54
        return $this;
55
    }
56
57
    /**
58
     * @return int
59
     */
60
    public function getRight()
61
    {
62
        return $this->right;
63
    }
64
65
    /**
66
     * @param int $right
67
     * @return $this
68
     */
69
    public function setRight($right)
70
    {
71
        $this->right = $right;
72
        return $this;
73
    }
74
75
    /**
76
     * @return int
77
     */
78
    public function getLevel()
79
    {
80
        return $this->level;
81
    }
82
83
    /**
84
     * @param int $level
85
     * @return $this
86
     */
87
    public function setLevel($level)
88
    {
89
        $this->level = $level;
90
        return $this;
91
    }
92
}
0 ignored issues
show
Coding Style introduced by
As per coding style, files should not end with a newline character.

This check marks files that end in a newline character, i.e. an empy line.

Loading history...
93