Passed
Pull Request — master (#28)
by Manuel
02:51
created

Marketplace::getSubmerchantId()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

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