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

UseCase   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 32
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

4 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A getId() 0 4 1
A setDomain() 0 4 1
A getType() 0 4 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