Category   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 35
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 6
dl 0
loc 35
rs 10
c 0
b 0
f 0
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getId() 0 3 1
A setName() 0 3 1
A getName() 0 3 1
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