Completed
Branch master (1fe5d2)
by Tomasz
03:00 queued 42s
created

Command   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 3
lcom 0
cbo 0
dl 0
loc 24
rs 10
c 1
b 0
f 1

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A getModelId() 0 4 1
A getDomainId() 0 4 1
1
<?php
2
namespace Hexarchium\CoreDomain\UseCase\CreateModel;
3
4
use Hexarchium\CoreDomain\Model\Domain\DomainId;
5
use Hexarchium\CoreDomain\Model\Domain\Model\ModelId;
6
7
class Command
8
{
9
    /** @var ModelId */
10
    private $modelId;
11
12
    /** @var DomainId */
13
    private $domainId;
14
15
    public function __construct(ModelId $modelId, DomainId $domainId)
16
    {
17
        $this->modelId = $modelId;
18
        $this->domainId = $domainId;
19
    }
20
21
    public function getModelId(): ModelId
22
    {
23
        return $this->modelId;
24
    }
25
26
    public function getDomainId(): DomainId
27
    {
28
        return $this->domainId;
29
    }
30
}
31