Completed
Push — master ( 1fe5d2...6a0fd3 )
by Tomasz
02:28
created

UseCase::setDomain()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 1
1
<?php
2
3
namespace Hexarchium\CoreDomain\Model\Domain\Entity;
4
5
use Hexarchium\CoreDomain\Model\Domain\UseCase\Type;
6
use Hexarchium\CoreDomain\Model\Domain\UseCase\UseCaseId;
7
8
class UseCase
9
{
10
    /** @var UseCaseId */
11
    private $id;
12
13
    /** @var  Domain */
14
    private $domain;
15
16
    /** @var  Type */
17
    private $type;
18
19
    public function __construct(UseCaseId $id, Type $type)
20
    {
21
        $this->id = $id;
22
        $this->type = $type;
23
    }
24
25
    public function getId(): UseCaseId
26
    {
27
        return $this->id;
28
    }
29
30
    public function setDomain(Domain $domain)
31
    {
32
        $this->domain = $domain;
33
    }
34
35
    public function getType(): Type
36
    {
37
        return $this->type;
38
    }
39
}
40