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

UseCase::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
dl 0
loc 5
rs 9.4285
c 1
b 0
f 1
cc 1
eloc 3
nc 1
nop 2
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