Configuration::setMinimumAmount()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
1
<?php
2
3
namespace CultureKings\Afterpay\Model\Merchant;
4
5
use CultureKings\Afterpay\Model\Money;
6
7
/**
8
 * Class Configuration
9
 *
10
 * @package CultureKings\Afterpay\Model
11
 */
12
class Configuration
13
{
14
    /**
15
     * @var string
16
     */
17
    protected $type;
18
    /**
19
     * @var string
20
     */
21
    protected $description;
22
    /**
23
     * @var Money
24
     */
25
    protected $minimumAmount;
26
    /**
27
     * @var Money
28
     */
29
    protected $maximumAmount;
30
31
    /**
32
     * @return string
33
     */
34
    public function getType()
35
    {
36
        return $this->type;
37
    }
38
39
    /**
40
     * @return mixed
41
     */
42
    public function getDescription()
43
    {
44
        return $this->description;
45
    }
46
47
    /**
48
     * @return Money
49
     */
50
    public function getMinimumAmount()
51
    {
52
        return $this->minimumAmount;
53
    }
54
55
    /**
56
     * @return Money
57
     */
58
    public function getMaximumAmount()
59
    {
60
        return $this->maximumAmount;
61
    }
62
63
    /**
64
     * @param string $type
65
     * @return $this
66
     */
67
    public function setType($type)
68
    {
69
        $this->type = $type;
70
71
        return $this;
72
    }
73
74
    /**
75
     * @param string $description
76
     * @return $this
77
     */
78
    public function setDescription($description)
79
    {
80
        $this->description = $description;
81
82
        return $this;
83
    }
84
85
    /**
86
     * @param Money $minimumAmount
87
     * @return $this
88
     */
89
    public function setMinimumAmount(Money $minimumAmount)
90
    {
91
        $this->minimumAmount = $minimumAmount;
92
93
        return $this;
94
    }
95
96
    /**
97
     * @param Money $maximumAmount
98
     * @return $this
99
     */
100
    public function setMaximumAmount(Money $maximumAmount)
101
    {
102
        $this->maximumAmount = $maximumAmount;
103
104
        return $this;
105
    }
106
}
107