PreApproval::getAmount()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
namespace CultureKings\Afterpay\Model\InStore;
3
4
use CultureKings\Afterpay\Model\Money;
5
6
/**
7
 * Class PreApproval
8
 * @package CultureKings\Afterpay\Model\InStore
9
 */
10
class PreApproval
11
{
12
    /**
13
     * @var Money
14
     */
15
    protected $minimum;
16
    /**
17
     * @var Money
18
     */
19
    protected $amount;
20
    /**
21
     * @var \DateTimeInterface
22
     */
23
    protected $expiresAt;
24
25
    /**
26
     * @return Money
27
     */
28
    public function getMinimum()
29
    {
30
        return $this->minimum;
31
    }
32
33
    /**
34
     * @param Money $minimum
35
     *
36
     * @return PreApproval
37
     */
38
    public function setMinimum(Money $minimum)
39
    {
40
        $this->minimum = $minimum;
41
42
        return $this;
43
    }
44
45
    /**
46
     * @return Money
47
     */
48
    public function getAmount()
49
    {
50
        return $this->amount;
51
    }
52
53
    /**
54
     * @param Money $amount
55
     *
56
     * @return PreApproval
57
     */
58
    public function setAmount(Money $amount)
59
    {
60
        $this->amount = $amount;
61
62
        return $this;
63
    }
64
65
    /**
66
     * @return \DateTimeInterface
67
     */
68
    public function getExpiresAt()
69
    {
70
        return $this->expiresAt;
71
    }
72
73
    /**
74
     * @param \DateTimeInterface $expiresAt
75
     *
76
     * @return PreApproval
77
     */
78
    public function setExpiresAt(\DateTimeInterface $expiresAt)
79
    {
80
        $this->expiresAt = $expiresAt;
81
82
        return $this;
83
    }
84
}
85