Passed
Push — master ( d2bca0...659124 )
by Frank
02:12
created

InitiatorCommand   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 4
c 1
b 0
f 0
dl 0
loc 15
ccs 5
cts 5
cp 1
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A aggregateRootId() 0 3 1
A __construct() 0 3 1
1
<?php
2
3
namespace EventSauce\EventSourcing\Integration\TestingAggregates;
4
5
6
class InitiatorCommand
7
{
8
    /**
9
     * @var DummyAggregateRootId
10
     */
11
    private $aggregateRootId;
12
13 1
    public function __construct(DummyAggregateRootId $aggregateRootId)
14
    {
15 1
        $this->aggregateRootId = $aggregateRootId;
16 1
    }
17
18 1
    public function aggregateRootId(): DummyAggregateRootId
19
    {
20 1
        return $this->aggregateRootId;
21
    }
22
}
23