PaymentSurchargeFee   A
last analyzed

Complexity

Total Complexity 11

Size/Duplication

Total Lines 73
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 18
dl 0
loc 73
rs 10
c 0
b 0
f 0
wmc 11

11 Methods

Rating   Name   Duplication   Size   Complexity  
A getId() 0 3 1
A getFixedAmount() 0 3 1
A setPercentage() 0 3 1
A getSurchargeLimit() 0 3 1
A setFixedAmount() 0 3 1
A getPercentage() 0 3 1
A setSurchargeLimit() 0 3 1
A setMollieGatewayConfig() 0 3 1
A getType() 0 3 1
A getMollieGatewayConfig() 0 3 1
A setType() 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
 * 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 Sylius\Component\Resource\Model\ResourceInterface;
15
16
class PaymentSurchargeFee implements ResourceInterface, PaymentSurchargeFeeInterface
17
{
18
    /** @var int|null */
19
    protected $id;
20
21
    /** @var string|null */
22
    protected $type;
23
24
    /** @var float|null */
25
    protected $fixedAmount;
26
27
    /** @var float|null */
28
    protected $percentage;
29
30
    /** @var float|null */
31
    protected $surchargeLimit;
32
33
    /** @var MollieGatewayConfigInterface|null */
34
    protected $mollieGatewayConfig;
35
36
    public function getId(): ?int
37
    {
38
        return $this->id;
39
    }
40
41
    public function getType(): ?string
42
    {
43
        return $this->type;
44
    }
45
46
    public function setType(?string $type): void
47
    {
48
        $this->type = $type;
49
    }
50
51
    public function getFixedAmount(): ?float
52
    {
53
        return $this->fixedAmount;
54
    }
55
56
    public function setFixedAmount(?float $fixedAmount): void
57
    {
58
        $this->fixedAmount = $fixedAmount;
59
    }
60
61
    public function getPercentage(): ?float
62
    {
63
        return $this->percentage;
64
    }
65
66
    public function setPercentage(?float $percentage): void
67
    {
68
        $this->percentage = $percentage;
69
    }
70
71
    public function getSurchargeLimit(): ?float
72
    {
73
        return $this->surchargeLimit;
74
    }
75
76
    public function setSurchargeLimit(?float $surchargeLimit): void
77
    {
78
        $this->surchargeLimit = $surchargeLimit;
79
    }
80
81
    public function getMollieGatewayConfig(): ?MollieGatewayConfigInterface
82
    {
83
        return $this->mollieGatewayConfig;
84
    }
85
86
    public function setMollieGatewayConfig(?MollieGatewayConfigInterface $mollieGatewayConfig): void
87
    {
88
        $this->mollieGatewayConfig = $mollieGatewayConfig;
89
    }
90
}
91