Completed
Pull Request — master (#49)
by
unknown
06:22
created

MollieGatewayConfig   A

Complexity

Total Complexity 19

Size/Duplication

Total Lines 125
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 19
eloc 30
c 1
b 0
f 0
dl 0
loc 125
rs 10

19 Methods

Rating   Name   Duplication   Size   Complexity  
A setMethodId() 0 3 1
A getCustomizeMethodImage() 0 3 1
A getPaymentSurchargeFee() 0 3 1
A getId() 0 3 1
A setCountryLevelExcluded() 0 3 1
A getCountryRestriction() 0 3 1
A getMethodId() 0 3 1
A getCountryLevelExcluded() 0 3 1
A setOrderExpiration() 0 3 1
A setPaymentDescription() 0 3 1
A setGateway() 0 3 1
A setCustomizeMethodImage() 0 3 1
A setCountryRestriction() 0 3 1
A setPaymentSurchargeFee() 0 3 1
A getCountryLevelAllowed() 0 3 1
A getOrderExpiration() 0 3 1
A getGateway() 0 3 1
A setCountryLevelAllowed() 0 3 1
A getPaymentDescription() 0 3 1
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
 * another great project.
7
 * You can find more information about us on https://bitbag.shop and write us
8
 * an email on [email protected].
9
 */
10
11
declare(strict_types=1);
12
13
namespace BitBag\SyliusMolliePlugin\Entity;
14
15
use BitBag\SyliusMolliePlugin\Payments\Methods\AbstractMethod;
16
use Sylius\Component\Resource\Model\ResourceInterface;
17
18
class MollieGatewayConfig extends AbstractMethod implements ResourceInterface, MollieGatewayConfigInterface
19
{
20
    /** @var int */
21
    private $id;
22
23
    /** @var string */
24
    private $methodId;
25
26
    /** @var GatewayConfigInterface */
27
    private $gateway;
28
29
    /** @var PaymentSurchargeFeeInterface */
30
    private $paymentSurchargeFee;
31
32
    /** @var MollieMethodImageInterface */
33
    private $customizeMethodImage;
34
35
    /** @var array */
36
    private $countryLevelAllowed;
37
38
    /** @var array */
39
    private $countryLevelExcluded;
40
41
    /** @var int */
42
    private $orderExpiration = 28;
43
44
    /** @var string */
45
    private $paymentDescription;
46
47
    /** @var string|null */
48
    private $countryRestriction;
49
50
    public function getId(): int
51
    {
52
        return $this->id;
53
    }
54
55
    public function getMethodId(): ?string
56
    {
57
        return $this->methodId;
58
    }
59
60
    public function setMethodId(?string $methodId): void
61
    {
62
        $this->methodId = $methodId;
63
    }
64
65
    public function getGateway(): GatewayConfigInterface
66
    {
67
        return $this->gateway;
68
    }
69
70
    public function setGateway(GatewayConfigInterface $gateway): void
71
    {
72
        $this->gateway = $gateway;
73
    }
74
75
    public function getPaymentSurchargeFee(): ?PaymentSurchargeFeeInterface
76
    {
77
        return $this->paymentSurchargeFee;
78
    }
79
80
    public function setPaymentSurchargeFee(?PaymentSurchargeFeeInterface $paymentSurchargeFee): void
81
    {
82
        $this->paymentSurchargeFee = $paymentSurchargeFee;
83
    }
84
85
    public function getCustomizeMethodImage(): ?MollieMethodImageInterface
86
    {
87
        return $this->customizeMethodImage;
88
    }
89
90
    public function setCustomizeMethodImage(?MollieMethodImageInterface $customizeMethodImage): void
91
    {
92
        $this->customizeMethodImage = $customizeMethodImage;
93
    }
94
95
    public function getCountryLevelAllowed(): ?array
96
    {
97
        return $this->countryLevelAllowed;
98
    }
99
100
    public function setCountryLevelAllowed(?array $countryLevelAllowed): void
101
    {
102
        $this->countryLevelAllowed = $countryLevelAllowed;
103
    }
104
105
    public function getCountryLevelExcluded(): ?array
106
    {
107
        return $this->countryLevelExcluded;
108
    }
109
110
    public function setCountryLevelExcluded(?array $countryLevelExcluded): void
111
    {
112
        $this->countryLevelExcluded = $countryLevelExcluded;
113
    }
114
115
    public function getOrderExpiration(): ?int
116
    {
117
        return $this->orderExpiration;
118
    }
119
120
    public function setOrderExpiration(?int $orderExpiration): void
121
    {
122
        $this->orderExpiration = $orderExpiration;
123
    }
124
125
    public function getPaymentDescription(): ?string
126
    {
127
        return $this->paymentDescription;
128
    }
129
130
    public function setPaymentDescription(?string $paymentDescription): void
131
    {
132
        $this->paymentDescription = $paymentDescription;
133
    }
134
135
    public function getCountryRestriction(): ?string
136
    {
137
        return $this->countryRestriction;
138
    }
139
140
    public function setCountryRestriction(?string $countryRestriction): void
141
    {
142
        $this->countryRestriction = $countryRestriction;
143
    }
144
}
145