Passed
Pull Request — master (#40)
by
unknown
05:57 queued 01:07
created

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