Category::getName()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

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