Completed
Push — master ( 478aa0...3b6cb2 )
by Yann
02:11
created

AmountDetails::getAmount()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
dl 0
loc 4
ccs 0
cts 2
cp 0
rs 10
c 1
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
crap 2
1
<?php
2
3
namespace Genkgo\Camt\DTO;
4
5
use Money\Money;
6
7
/**
8
 * Class AmountDetails
9
 * @package Genkgo\Camt\DTO
10
 */
11
class AmountDetails
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 6
    public function setAmount(Money $money)
30
    {
31 6
        $this->amount = $money;
32 6
    }
33
34
}
35