Completed
Push — master ( a5ff2b...bf9940 )
by Yann
05:35
created

Amount::setAmount()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 3
cts 3
cp 1
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 1
crap 1
1
<?php
2
3
namespace Genkgo\Camt\DTO;
4
5
use Money\Money;
6
7
/**
8
 * Class Amount
9
 * @package Genkgo\Camt\DTO
10
 */
11
class Amount
12
{
13
    /**
14
     * @var Money
15
     */
16
    private $amount;
17
18
    /**
19
     * @return Money
20
     */
21
    public function getAmount()
22
    {
23
        return $this->amount;  
24
    }
25
26
    /**
27
     * @param Money $money
28
     */
29 13
    public function setAmount(Money $money)
30
    {
31 13
        $this->amount = $money;
32 13
    }
33
34
}
35