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

Refund::getDescription()   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
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