Test Setup Failed
Push — master ( de81f2...3dc847 )
by Tomasz
02:50
created

UseCase   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 0
dl 0
loc 25
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
1
<?php
2
/**
3
 * Copyright
4
 */
5
namespace Hexarchium\CoreDomain\Model\UseCase\Entity;
6
7
use Hexarchium\CoreDomain\Model\Domain\Entity\Domain;
8
use Hexarchium\CoreDomain\Model\UseCase\UseCaseId;
9
use Hexarchium\CoreDomain\Model\UseCase\ValueObject\Type;
10
11
class UseCase
12
{
13
    /** @var  UseCaseId */
14
    private $id;
15
16
    /** @var  Type */
17
    private $type;
18
19
    /** @var  Domain */
20
    private $domain;
21
22
    /**
23
     * UseCase constructor.
24
     *
25
     * @param UseCaseId $id
26
     * @param Type $type
27
     * @param Domain $domain
28
     */
29
    public function __construct(UseCaseId $id, Type $type, Domain $domain)
30
    {
31
        $this->id = $id;
32
        $this->type = $type;
33
        $this->domain = $domain;
34
    }
35
}