Category::getName()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
namespace DoctrineORMModuleTest\Assets\Entity;
4
5
use Doctrine\ORM\Mapping as ORM;
6
7
/**
8
 * @ORM\Entity
9
 * @ORM\Table(name="doctrine_orm_module_category")
10
 */
11
class Category
12
{
13
    /**
14
     * @ORM\Id
15
     * @ORM\Column(type="integer");
16
     * @ORM\GeneratedValue(strategy="AUTO")
17
     */
18
    protected $id;
19
20
    /**
21
     * @ORM\Column(type="string", nullable=true)
22
     */
23
    protected $name;
24
25
    /**
26
     * @return int|null
27
     */
28
    public function getId()
29
    {
30
        return $this->id;
31
    }
32
33
    public function setName($name)
34
    {
35
        $this->name = $name;
36
37
        return $this;
38
    }
39
40
    public function getName()
41
    {
42
        return $this->name;
43
    }
44
}
45