Passed
Push — master ( 3b8cce...9dc03a )
by
unknown
09:21 queued 04:13
created

MollieGatewayConfig::setPaymentDescription()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 1
c 0
b 0
f 0
dl 0
loc 3
rs 10
cc 1
nc 1
nop 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 $countryLevel;
37
38
    /** @var int */
39
    private $orderExpiration = 28;
40
41
    /** @var string */
42
    private $paymentDescription;
43
44
    public function getId(): int
45
    {
46
        return $this->id;
47
    }
48
49
    public function getMethodId(): ?string
50
    {
51
        return $this->methodId;
52
    }
53
54
    public function setMethodId(?string $methodId): void
55
    {
56
        $this->methodId = $methodId;
57
    }
58
59
    public function getGateway(): GatewayConfigInterface
60
    {
61
        return $this->gateway;
62
    }
63
64
    public function setGateway(GatewayConfigInterface $gateway): void
65
    {
66
        $this->gateway = $gateway;
67
    }
68
69
    public function getPaymentSurchargeFee(): ?PaymentSurchargeFeeInterface
70
    {
71
        return $this->paymentSurchargeFee;
72
    }
73
74
    public function setPaymentSurchargeFee(?PaymentSurchargeFeeInterface $paymentSurchargeFee): void
75
    {
76
        $this->paymentSurchargeFee = $paymentSurchargeFee;
77
    }
78
79
    public function getCustomizeMethodImage(): ?MollieMethodImageInterface
80
    {
81
        return $this->customizeMethodImage;
82
    }
83
84
    public function setCustomizeMethodImage(?MollieMethodImageInterface $customizeMethodImage): void
85
    {
86
        $this->customizeMethodImage = $customizeMethodImage;
87
    }
88
89
    public function getCountryLevel(): ?array
90
    {
91
        return $this->countryLevel;
92
    }
93
94
    public function setCountryLevel(?array $countryLevel): void
95
    {
96
        $this->countryLevel = $countryLevel;
97
    }
98
99
    public function getOrderExpiration(): ?int
100
    {
101
        return $this->orderExpiration;
102
    }
103
104
    public function setOrderExpiration(?int $orderExpiration): void
105
    {
106
        $this->orderExpiration = $orderExpiration;
107
    }
108
109
    public function getPaymentDescription(): ?string
110
    {
111
        return $this->paymentDescription;
112
    }
113
114
    public function setPaymentDescription(?string $paymentDescription): void
115
    {
116
        $this->paymentDescription = $paymentDescription;
117
    }
118
}
119