Passed
Push — master ( 713f8f...96a84a )
by
unknown
18:54 queued 12:11
created

MollieGatewayConfig::setPosition()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 1
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
3
/*
4
 * This file has been created by developers from BitBag.
5
 * Feel free to contact us once you face any issues or want to start
6
 * You can find more information about us on https://bitbag.io and write us
7
 * an email on [email protected].
8
 */
9
10
declare(strict_types=1);
11
12
namespace BitBag\SyliusMolliePlugin\Entity;
13
14
use BitBag\SyliusMolliePlugin\Payments\Methods\AbstractMethod;
15
use Sylius\Component\Resource\Model\ResourceInterface;
16
17
class MollieGatewayConfig extends AbstractMethod implements ResourceInterface, MollieGatewayConfigInterface
18
{
19
    /** @var int */
20
    protected $id;
21
22
    /** @var string|null */
23
    protected $methodId;
24
25
    /** @var GatewayConfigInterface */
26
    protected $gateway;
27
28
    /** @var PaymentSurchargeFeeInterface|null */
29
    protected $paymentSurchargeFee;
30
31
    /** @var MollieMethodImageInterface|null */
32
    protected $customizeMethodImage;
33
34
    /** @var array|null */
35
    protected $countryLevel;
36
37
    /** @var array|null */
38
    protected $countryLevelAllowed;
39
40
    /** @var array|null */
41
    protected $countryLevelExcluded;
42
43
    /** @var int|null */
44
    protected $orderExpiration = 28;
45
46
    /** @var string|null */
47
    protected $paymentDescription;
48
49
    /** @var bool|null */
50
    protected $loggerEnabled;
51
52
    /** @var int|null */
53
    protected $loggerLevel;
54
55
    /** @var string|null */
56
    protected $countryRestriction;
57
58
    /** @var int|null */
59
    protected $position;
60
61
    public function getId(): int
62
    {
63
        return $this->id;
64
    }
65
66
    public function getMethodId(): ?string
67
    {
68
        return $this->methodId;
69
    }
70
71
    public function setMethodId(?string $methodId): void
72
    {
73
        $this->methodId = $methodId;
74
    }
75
76
    public function getGateway(): GatewayConfigInterface
77
    {
78
        return $this->gateway;
79
    }
80
81
    public function setGateway(GatewayConfigInterface $gateway): void
82
    {
83
        $this->gateway = $gateway;
84
    }
85
86
    public function getPaymentSurchargeFee(): ?PaymentSurchargeFeeInterface
87
    {
88
        return $this->paymentSurchargeFee;
89
    }
90
91
    public function setPaymentSurchargeFee(?PaymentSurchargeFeeInterface $paymentSurchargeFee): void
92
    {
93
        $this->paymentSurchargeFee = $paymentSurchargeFee;
94
    }
95
96
    public function getCustomizeMethodImage(): ?MollieMethodImageInterface
97
    {
98
        return $this->customizeMethodImage;
99
    }
100
101
    public function setCustomizeMethodImage(?MollieMethodImageInterface $customizeMethodImage): void
102
    {
103
        $this->customizeMethodImage = $customizeMethodImage;
104
    }
105
106
    public function getCountryLevel(): ?array
107
    {
108
        return $this->countryLevel;
109
    }
110
111
    public function setCountryLevel(?array $countryLevel): void
112
    {
113
        $this->countryLevel = $countryLevel;
114
    }
115
116
    public function getOrderExpiration(): ?int
117
    {
118
        return $this->orderExpiration;
119
    }
120
121
    public function setOrderExpiration(?int $orderExpiration): void
122
    {
123
        $this->orderExpiration = $orderExpiration;
124
    }
125
126
    public function getPaymentDescription(): ?string
127
    {
128
        return $this->paymentDescription;
129
    }
130
131
    public function setPaymentDescription(?string $paymentDescription): void
132
    {
133
        $this->paymentDescription = $paymentDescription;
134
    }
135
136
    public function isLoggerEnabled(): ?bool
137
    {
138
        return $this->loggerEnabled;
139
    }
140
141
    public function setLoggerEnabled(?bool $loggerEnabled): void
142
    {
143
        $this->loggerEnabled = $loggerEnabled;
144
    }
145
146
    public function getLoggerLevel(): ?int
147
    {
148
        return $this->loggerLevel;
149
    }
150
151
    public function setLoggerLevel(?int $loggerLevel): void
152
    {
153
        $this->loggerLevel = $loggerLevel;
154
    }
155
156
    public function __toString(): string
157
    {
158
        return \sprintf('%s', $this->name);
159
    }
160
161
    public function getCountryLevelAllowed(): ?array
162
    {
163
        return $this->countryLevelAllowed;
164
    }
165
166
    public function setCountryLevelAllowed(?array $countryLevelAllowed): void
167
    {
168
        $this->countryLevelAllowed = $countryLevelAllowed;
169
    }
170
171
    public function getCountryLevelExcluded(): ?array
172
    {
173
        return $this->countryLevelExcluded;
174
    }
175
176
    public function setCountryLevelExcluded(?array $countryLevelExcluded): void
177
    {
178
        $this->countryLevelExcluded = $countryLevelExcluded;
179
    }
180
181
    public function getCountryRestriction(): ?string
182
    {
183
        return $this->countryRestriction;
184
    }
185
186
    public function setCountryRestriction(?string $countryRestriction): void
187
    {
188
        $this->countryRestriction = $countryRestriction;
189
    }
190
191
    public function getPosition(): ?int
192
    {
193
        return $this->position;
194
    }
195
196
    public function setPosition(?int $position): void
197
    {
198
        $this->position = $position;
199
    }
200
}
201