Total Complexity | 2 |
Total Lines | 25 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
21 | abstract class AbstractAggregateRoot implements AggregateRoot |
||
22 | { |
||
23 | use EventBehaviour; |
||
24 | |||
25 | /** |
||
26 | * @var Identity |
||
27 | */ |
||
28 | private $identity; |
||
29 | |||
30 | /** |
||
31 | * AbstractAggregateRoot constructor. |
||
32 | * |
||
33 | * @param Identity $identity |
||
34 | */ |
||
35 | final protected function __construct(Identity $identity) |
||
38 | } |
||
39 | |||
40 | /** |
||
41 | * {@inheritdoc} |
||
42 | */ |
||
43 | final public function getIdentity(): Identity |
||
48 |