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