Completed
Push — master ( b0a3db...81c3f8 )
by Christopher
02:50
created

AggregateRoot::setBalance()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
dl 0
loc 4
rs 10
c 1
b 0
f 0
cc 1
eloc 2
nc 1
nop 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 setBalance(UsDollar $value)
11
    {
12
        $this->balance = $value;
13
    }
14
15
    protected function setOwner(OwnerName $value)
16
    {
17
        $this->owner = $value;
18
    }
19
}
20