Completed
Pull Request — master (#1)
by Luc
06:59 queued 03:12
created

Category   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 38
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
dl 0
loc 38
rs 10
c 0
b 0
f 0
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
A getName() 0 3 1
A getId() 0 3 1
1
<?php declare(strict_types=1);
2
3
namespace VSV\GVQ_API\Question\Models;
4
5
use Ramsey\Uuid\UuidInterface;
6
use VSV\GVQ_API\Question\ValueObjects\NotEmptyString;
7
8
class Category
9
{
10
    /**
11
     * @var UuidInterface
12
     */
13
    private $id;
14
15
    /**
16
     * @var NotEmptyString
17
     */
18
    private $name;
19
20
    /**
21
     * @param UuidInterface $id
22
     * @param NotEmptyString $name
23
     */
24
    public function __construct(
25
        UuidInterface $id,
26
        NotEmptyString $name
27
    ) {
28
        $this->id = $id;
29
        $this->name = $name;
30
    }
31
32
    /**
33
     * @return UuidInterface
34
     */
35
    public function getId(): UuidInterface
36
    {
37
        return $this->id;
38
    }
39
40
    /**
41
     * @return NotEmptyString
42
     */
43
    public function getName(): NotEmptyString
44
    {
45
        return $this->name;
46
    }
47
}
48