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

Refund   A

Complexity

Total Complexity 7

Size/Duplication

Total Lines 60
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 14
dl 0
loc 60
rs 10
c 0
b 0
f 0
wmc 7

7 Methods

Rating   Name   Duplication   Size   Complexity  
A setDescription() 0 5 1
A setOrderId() 0 5 1
A getAmount() 0 3 1
A getOrderId() 0 3 1
A getDescription() 0 3 1
A __construct() 0 3 1
A setAmount() 0 5 1
1
<?php declare(strict_types=1);
2
3
namespace Ticketpark\SaferpayJson\Request\Container;
4
5
use JMS\Serializer\Annotation\SerializedName;
6
use JMS\Serializer\Annotation\Type;
7
8
final class Refund
9
{
10
    /**
11
     * @var Amount|null
12
     * @SerializedName("Amount")
13
     * @Type("Ticketpark\SaferpayJson\Request\Container\Amount")
14
     */
15
    private $amount;
16
17
    /**
18
     * @var string|null
19
     * @SerializedName("OrderId")
20
     */
21
    private $orderId;
22
23
    /**
24
     * @var string|null
25
     * @SerializedName("Description")
26
     */
27
    private $description;
28
29
    public function __construct(?Amount $amount)
30
    {
31
        $this->amount = $amount;
32
    }
33
34
    public function getAmount(): ?Amount
35
    {
36
        return $this->amount;
37
    }
38
39
    public function setAmount(?Amount $amount): self
40
    {
41
        $this->amount = $amount;
42
43
        return $this;
44
    }
45
46
    public function getOrderId(): ?string
47
    {
48
        return $this->orderId;
49
    }
50
51
    public function setOrderId(?string $orderId): self
52
    {
53
        $this->orderId = $orderId;
54
55
        return $this;
56
    }
57
58
    public function getDescription(): ?string
59
    {
60
        return $this->description;
61
    }
62
63
    public function setDescription(?string $description): self
64
    {
65
        $this->description = $description;
66
67
        return $this;
68
    }
69
}
70