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

UseCase::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 4
nc 1
nop 3
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
}