Passed
Pull Request — master (#99)
by
unknown
07:48 queued 38s
created

ConfigTrait::getIssuers()   A

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
eloc 1
c 1
b 0
f 0
dl 0
loc 3
rs 10
cc 1
nc 1
nop 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\Payments\Methods;
13
14
use BitBag\SyliusMolliePlugin\Entity\ProductTypeInterface;
15
16
trait ConfigTrait
17
{
18
    /** @var array */
19
    protected $image;
20
21
    /** @var array */
22
    protected $minimumAmount;
23
24
    /** @var array */
25
    protected $maximumAmount;
26
27
    /** @var string */
28
    protected $paymentType;
29
30
    /** @var array */
31
    protected $country;
32
33
    /** @var bool */
34
    protected $canRefunded = true;
35
36
    /** @var array */
37
    protected $issuers = [];
38
39
    /** @var ProductTypeInterface|null */
40
    protected $defaultCategory;
41
42
    /** @var bool|null */
43
    protected $applePayDirectButton;
44
45
    public function getImage(): array
46
    {
47
        return $this->image;
48
    }
49
50
    public function setImage(array $image): void
51
    {
52
        $this->image = $image;
53
    }
54
55
    public function getMinimumAmount(): array
56
    {
57
        return $this->minimumAmount;
58
    }
59
60
    public function setMinimumAmount(array $minimumAmount): void
61
    {
62
        $this->minimumAmount = $minimumAmount;
63
    }
64
65
    public function getMaximumAmount(): array
66
    {
67
        return $this->maximumAmount;
68
    }
69
70
    public function setMaximumAmount(array $maximumAmount): void
71
    {
72
        $this->maximumAmount = $maximumAmount;
73
    }
74
75
    public function getPaymentType(): string
76
    {
77
        return $this->paymentType;
78
    }
79
80
    public function setPaymentType(string $paymentType): void
81
    {
82
        $this->paymentType = $paymentType;
83
    }
84
85
    public function getCountry(): array
86
    {
87
        return $this->country;
88
    }
89
90
    public function setCountry(array $country): void
91
    {
92
        $this->country = $country;
93
    }
94
95
    public function isCanRefunded(): bool
96
    {
97
        return $this->canRefunded;
98
    }
99
100
    public function setCanRefunded(bool $canRefunded): void
101
    {
102
        $this->canRefunded = $canRefunded;
103
    }
104
105
    public function getIssuers(): array
106
    {
107
        return $this->issuers;
108
    }
109
110
    public function setIssuers(array $issuers): void
111
    {
112
        $this->issuers = $issuers;
113
    }
114
115
    public function getDefaultCategory(): ?ProductTypeInterface
116
    {
117
        return $this->defaultCategory;
118
    }
119
120
    public function setDefaultCategory(?ProductTypeInterface $defaultCategory): void
121
    {
122
        $this->defaultCategory = $defaultCategory;
123
    }
124
125
    public function isApplePayDirectButton(): ?bool
126
    {
127
        return $this->applePayDirectButton;
128
    }
129
130
    public function setApplePayDirectButton(?bool $applePayDirectButton): void
131
    {
132
        $this->applePayDirectButton = $applePayDirectButton;
133
    }
134
}
135