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

Marketplace   A

Complexity

Total Complexity 6

Size/Duplication

Total Lines 52
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 12
dl 0
loc 52
rs 10
c 0
b 0
f 0
wmc 6

6 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
A getSubmerchantId() 0 3 1
A setFeeRefund() 0 5 1
A setFee() 0 5 1
A getFeeRefund() 0 3 1
A getFee() 0 3 1
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