NestedSet::setId()   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
use Doctrine\ORM\Mapping\GeneratedValue;
11
use Doctrine\ORM\Mapping\Id;
12
use Doctrine\ORM\Mapping\MappedSuperclass;
13
14
/**
15
 * Класс используется для построения деревьев
16
 * Class NestedSet
17
 * @package Nnx\DataGrid\Entity
18
 * @MappedSuperclass()
19
 */
20
class NestedSet
21
{
22
    use NestedSetTrait;
23
    /**
24
     * @var int
25
     *
26
     * @Id()
27
     * @Column(name="id",type="integer"),
28
     * @GeneratedValue(strategy = "IDENTITY")
29
     */
30
    protected $id;
31
32
    /**
33
     * @return int
34
     */
35
    public function getId()
36
    {
37
        return $this->id;
38
    }
39
40
    /**
41
     * @param int $id
42
     * @return $this
43
     */
44
    public function setId($id)
45
    {
46
        $this->id = $id;
47
        return $this;
48
    }
49
}
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...
50