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

Command   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 40
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 4
lcom 0
cbo 0
dl 0
loc 40
rs 10
c 0
b 0
f 0

4 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
A getDomainId() 0 4 1
A getUseCaseId() 0 4 1
A getUseCaseType() 0 4 1
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