ConfigurationResponse::getAmountMinLongrun()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 3
rs 10
1
<?php
2
3
/**
4
 * MIT License
5
 * Use of this software requires acceptance of the Evaluation License Agreement. See LICENSE file.
6
 */
7
8
namespace SprykerEco\Zed\Ratepay\Business\Api\Model\Response;
9
10
class ConfigurationResponse extends BaseResponse
11
{
12
    /**
13
     * @return float
14
     */
15
    public function getInterestrateMin()
16
    {
17
        return (float)($this->xmlObject->content->{'installment-configuration-result'}->{'interestrate-min'});
0 ignored issues
show
Bug Best Practice introduced by
The property content does not exist on SprykerEco\Zed\Ratepay\B...ss\Api\SimpleXMLElement. Since you implemented __get, consider adding a @property annotation.
Loading history...
18
    }
19
20
    /**
21
     * @return float
22
     */
23
    public function getInterestrateDefault()
24
    {
25
        return (float)($this->xmlObject->content->{'installment-configuration-result'}->{'interestrate-default'});
0 ignored issues
show
Bug Best Practice introduced by
The property content does not exist on SprykerEco\Zed\Ratepay\B...ss\Api\SimpleXMLElement. Since you implemented __get, consider adding a @property annotation.
Loading history...
26
    }
27
28
    /**
29
     * @return float
30
     */
31
    public function getInterestrateMax()
32
    {
33
        return (float)($this->xmlObject->content->{'installment-configuration-result'}->{'interestrate-max'});
0 ignored issues
show
Bug Best Practice introduced by
The property content does not exist on SprykerEco\Zed\Ratepay\B...ss\Api\SimpleXMLElement. Since you implemented __get, consider adding a @property annotation.
Loading history...
34
    }
35
36
    /**
37
     * @return float
38
     */
39
    public function getInterestRateMerchantTowardsBank()
40
    {
41
        return (float)($this->xmlObject->content->{'installment-configuration-result'}->{'interest-rate-merchant-towards-bank'});
0 ignored issues
show
Bug Best Practice introduced by
The property content does not exist on SprykerEco\Zed\Ratepay\B...ss\Api\SimpleXMLElement. Since you implemented __get, consider adding a @property annotation.
Loading history...
42
    }
43
44
    /**
45
     * @return int
46
     */
47
    public function getMonthNumberMin()
48
    {
49
        return (int)$this->xmlObject->content->{'installment-configuration-result'}->{'month-number-min'};
0 ignored issues
show
Bug Best Practice introduced by
The property content does not exist on SprykerEco\Zed\Ratepay\B...ss\Api\SimpleXMLElement. Since you implemented __get, consider adding a @property annotation.
Loading history...
50
    }
51
52
    /**
53
     * @return int
54
     */
55
    public function getMonthNumberMax()
56
    {
57
        return (int)$this->xmlObject->content->{'installment-configuration-result'}->{'month-number-max'};
0 ignored issues
show
Bug Best Practice introduced by
The property content does not exist on SprykerEco\Zed\Ratepay\B...ss\Api\SimpleXMLElement. Since you implemented __get, consider adding a @property annotation.
Loading history...
58
    }
59
60
    /**
61
     * @return int
62
     */
63
    public function getMonthLongrun()
64
    {
65
        return (int)$this->xmlObject->content->{'installment-configuration-result'}->{'month-longrun'};
0 ignored issues
show
Bug Best Practice introduced by
The property content does not exist on SprykerEco\Zed\Ratepay\B...ss\Api\SimpleXMLElement. Since you implemented __get, consider adding a @property annotation.
Loading history...
66
    }
67
68
    /**
69
     * @return int
70
     */
71
    public function getAmountMinLongrun()
72
    {
73
        return (int)$this->xmlObject->content->{'installment-configuration-result'}->{'amount-min-longrun'};
0 ignored issues
show
Bug Best Practice introduced by
The property content does not exist on SprykerEco\Zed\Ratepay\B...ss\Api\SimpleXMLElement. Since you implemented __get, consider adding a @property annotation.
Loading history...
74
    }
75
76
    /**
77
     * @return array
78
     */
79
    public function getMonthAllowed()
80
    {
81
        $monthAllowed = (string)$this->xmlObject->content->{'installment-configuration-result'}->{'month-allowed'};
0 ignored issues
show
Bug Best Practice introduced by
The property content does not exist on SprykerEco\Zed\Ratepay\B...ss\Api\SimpleXMLElement. Since you implemented __get, consider adding a @property annotation.
Loading history...
82
        $monthAllowed = array_values(explode(',', $monthAllowed));
83
84
        return array_combine($monthAllowed, $monthAllowed);
0 ignored issues
show
Bug Best Practice introduced by
The expression return array_combine($monthAllowed, $monthAllowed) could also return false which is incompatible with the documented return type array. Did you maybe forget to handle an error condition?

If the returned type also contains false, it is an indicator that maybe an error condition leading to the specific return statement remains unhandled.

Loading history...
85
    }
86
87
    /**
88
     * @return int
89
     */
90
    public function getValidPaymentFirstdays()
91
    {
92
        return (int)$this->xmlObject->content->{'installment-configuration-result'}->{'valid-payment-firstdays'};
0 ignored issues
show
Bug Best Practice introduced by
The property content does not exist on SprykerEco\Zed\Ratepay\B...ss\Api\SimpleXMLElement. Since you implemented __get, consider adding a @property annotation.
Loading history...
93
    }
94
95
    /**
96
     * @return int
97
     */
98
    public function getPaymentFirstday()
99
    {
100
        return (int)$this->xmlObject->content->{'installment-configuration-result'}->{'payment-firstday'};
0 ignored issues
show
Bug Best Practice introduced by
The property content does not exist on SprykerEco\Zed\Ratepay\B...ss\Api\SimpleXMLElement. Since you implemented __get, consider adding a @property annotation.
Loading history...
101
    }
102
103
    /**
104
     * @return int
105
     */
106
    public function getPaymentAmount()
107
    {
108
        return (int)$this->xmlObject->content->{'installment-configuration-result'}->{'payment-amount'};
0 ignored issues
show
Bug Best Practice introduced by
The property content does not exist on SprykerEco\Zed\Ratepay\B...ss\Api\SimpleXMLElement. Since you implemented __get, consider adding a @property annotation.
Loading history...
109
    }
110
111
    /**
112
     * @return int
113
     */
114
    public function getPaymentLastrate()
115
    {
116
        return (int)$this->xmlObject->content->{'installment-configuration-result'}->{'payment-lastrate'};
0 ignored issues
show
Bug Best Practice introduced by
The property content does not exist on SprykerEco\Zed\Ratepay\B...ss\Api\SimpleXMLElement. Since you implemented __get, consider adding a @property annotation.
Loading history...
117
    }
118
119
    /**
120
     * @return int
121
     */
122
    public function getRateMinNormal()
123
    {
124
        return (int)$this->xmlObject->content->{'installment-configuration-result'}->{'rate-min-normal'};
0 ignored issues
show
Bug Best Practice introduced by
The property content does not exist on SprykerEco\Zed\Ratepay\B...ss\Api\SimpleXMLElement. Since you implemented __get, consider adding a @property annotation.
Loading history...
125
    }
126
127
    /**
128
     * @return int
129
     */
130
    public function getRateMinLongrun()
131
    {
132
        return (int)$this->xmlObject->content->{'installment-configuration-result'}->{'rate-min-longrun'};
0 ignored issues
show
Bug Best Practice introduced by
The property content does not exist on SprykerEco\Zed\Ratepay\B...ss\Api\SimpleXMLElement. Since you implemented __get, consider adding a @property annotation.
Loading history...
133
    }
134
135
    /**
136
     * @return float
137
     */
138
    public function getServiceCharge()
139
    {
140
        return (float)($this->xmlObject->content->{'installment-configuration-result'}->{'service-charge'});
0 ignored issues
show
Bug Best Practice introduced by
The property content does not exist on SprykerEco\Zed\Ratepay\B...ss\Api\SimpleXMLElement. Since you implemented __get, consider adding a @property annotation.
Loading history...
141
    }
142
143
    /**
144
     * @return int
145
     */
146
    public function getMinDifferenceDueday()
147
    {
148
        return (int)$this->xmlObject->content->{'installment-configuration-result'}->{'min-difference-dueday'};
0 ignored issues
show
Bug Best Practice introduced by
The property content does not exist on SprykerEco\Zed\Ratepay\B...ss\Api\SimpleXMLElement. Since you implemented __get, consider adding a @property annotation.
Loading history...
149
    }
150
}
151