Saldo::getCurrency()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 1
1
<?php
2
3
namespace Fhp\Model;
4
5
/**
6
 * Class Saldo
7
 * @package Fhp\Model
8
 */
9
class Saldo
10
{
11
    /**
12
     * @var string
13
     */
14
    protected $currency;
15
16
    /**
17
     * @var float
18
     */
19
    protected $amount;
20
21
    /**
22
     * @var \DateTime
23
     */
24
    protected $valuta;
25
26
    /**
27
     * Get currency
28
     *
29
     * @return string
30
     */
31 1
    public function getCurrency()
32
    {
33 1
        return $this->currency;
34
    }
35
36
    /**
37
     * Set currency
38
     *
39
     * @param string $currency
40
     *
41
     * @return $this
42
     */
43 1
    public function setCurrency($currency)
44
    {
45 1
        $this->currency = (string) $currency;
46
47 1
        return $this;
48
    }
49
50
    /**
51
     * Get amount
52
     *
53
     * @return float
54
     */
55 1
    public function getAmount()
56
    {
57 1
        return $this->amount;
58
    }
59
60
    /**
61
     * Set amount
62
     *
63
     * @param float $amount
64
     *
65
     * @return $this
66
     */
67 1
    public function setAmount($amount)
68
    {
69 1
        $this->amount = (float) $amount;
70
71 1
        return $this;
72
    }
73
74
    /**
75
     * Get valuta
76
     *
77
     * @return \DateTime
78
     */
79 1
    public function getValuta()
80
    {
81 1
        return $this->valuta;
82
    }
83
84
    /**
85
     * Set valuta
86
     *
87
     * @param \DateTime $valuta
88
     *
89
     * @return $this
90
     */
91 1
    public function setValuta(\DateTime $valuta)
92
    {
93 1
        $this->valuta = $valuta;
94
95 1
        return $this;
96
    }
97
}
98