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

Command::getUseCaseId()   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 0
1
<?php
2
3
namespace Hexarchium\CoreDomain\UseCase\CreateUseCase;
4
5
use Hexarchium\CoreDomain\Model\Domain\DomainId;
6
use Hexarchium\CoreDomain\Model\Domain\UseCase\UseCaseId;
7
8
class Command
9
{
10
    /** @var  UseCaseId */
11
    private $useCaseId;
12
13
    /** @var  DomainId */
14
    private $domainId;
15
16
    /** @var string */
17
    private $type;
18
19
    /**
20
     * Command constructor.
21
     *
22
     * @param UseCaseId $useCaseId
23
     * @param DomainId $domainId
24
     * @param string $type
25
     */
26
    public function __construct(UseCaseId $useCaseId, DomainId $domainId, string $type)
27
    {
28
        $this->useCaseId = $useCaseId;
29
        $this->domainId = $domainId;
30
        $this->type = $type;
31
    }
32
33
    public function getDomainId(): DomainId
34
    {
35
        return $this->domainId;
36
    }
37
38
    public function getUseCaseId(): UseCaseId
39
    {
40
        return $this->useCaseId;
41
    }
42
43
    public function getUseCaseType(): string
44
    {
45
        return $this->type;
46
    }
47
}
48