Marketplace::setFeeRefund()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 1
dl 0
loc 5
rs 10
c 0
b 0
f 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Ticketpark\SaferpayJson\Request\Container;
6
7
use JMS\Serializer\Annotation\SerializedName;
8
9
final class Marketplace
10
{
11
    /**
12
     * @var string
13
     * @SerializedName("SubmerchantId")
14
     */
15
    private $submerchantId;
16
17
    /**
18
     * @var Amount|null
19
     * @SerializedName("Fee")
20
     */
21
    private $fee;
22
23
    /**
24
     * @var Amount|null
25
     * @SerializedName("FeeRefund")
26
     */
27
    private $feeRefund;
28
29
    public function __construct(string $submerchantId)
30
    {
31
        $this->submerchantId = $submerchantId;
32
    }
33
34
    public function getSubmerchantId(): string
35
    {
36
        return $this->submerchantId;
37
    }
38
39
    public function getFee(): ?Amount
40
    {
41
        return $this->fee;
42
    }
43
44
    public function setFee(?Amount $fee): self
45
    {
46
        $this->fee = $fee;
47
48
        return $this;
49
    }
50
51
    public function getFeeRefund(): ?Amount
52
    {
53
        return $this->feeRefund;
54
    }
55
56
    public function setFeeRefund(?Amount $feeRefund): self
57
    {
58
        $this->feeRefund = $feeRefund;
59
60
        return $this;
61
    }
62
}
63