Passed
Push — master ( 09a839...6515e3 )
by Tomasz
02:07
created

UseCase::getDomain()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
/**
3
 * Copyright
4
 */
5
namespace Hexarchium\CoreDomain\Model\UseCase\Entity;
6
7
use Hexarchium\CoreDomain\Aggregate\AbstractAggregateRoot;
8
use Hexarchium\CoreDomain\Model\UseCase\UseCaseId;
9
use Hexarchium\CoreDomain\Model\UseCase\ValueObject\Type;
10
11
class UseCase extends AbstractAggregateRoot
12
{
13
    /** @var  Type */
14
    private $type;
15
16
    /**
17
     * UseCase constructor.
18
     *
19
     * @param UseCaseId $id
20
     * @param Type $type
21
     */
22
    public function __construct(UseCaseId $id, Type $type)
23
    {
24
        parent::__construct($id);
25
        $this->type = $type;
26
    }
27
28
    /**
29
     * @return Type
30
     */
31
    public function getType()
32
    {
33
        return $this->type;
34
    }
35
}
36