AggregateRoot   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 2
Bugs 0 Features 0
Metric Value
wmc 1
c 2
b 0
f 0
lcom 0
cbo 2
dl 0
loc 9
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A setOwner() 0 4 1
1
<?php namespace RayEmitter\Example\BankAccount;
2
3
use C4tech\RayEmitter\Contracts\Domain\AggregateRoot as AggregateRootInterface;
4
use C4tech\RayEmitter\Domain\AggregateRoot as RootTrait;
5
6
final class AggregateRoot extends Entity implements AggregateRootInterface
7
{
8
    use RootTrait;
9
10
    protected function setOwner(OwnerName $value)
11
    {
12
        $this->owner = $value;
13
    }
14
}
15