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

CaptureReference   A

Complexity

Total Complexity 8

Size/Duplication

Total Lines 72
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 17
dl 0
loc 72
rs 10
c 0
b 0
f 0
wmc 8

8 Methods

Rating   Name   Duplication   Size   Complexity  
A getOrderId() 0 3 1
A setOrderId() 0 5 1
A setOrderPartId() 0 5 1
A setCaptureId() 0 5 1
A getTransactionId() 0 3 1
A getCaptureId() 0 3 1
A setTransactionId() 0 5 1
A getOrderPartId() 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 CaptureReference
8
{
9
    /**
10
     * @var string|null
11
     * @SerializedName("CaptureId")
12
     */
13
    private $captureId;
14
15
    /**
16
     * @var string|null
17
     * @SerializedName("TransactionId")
18
     */
19
    private $transactionId;
20
21
    /**
22
     * @var string|null
23
     * @SerializedName("OrderId")
24
     */
25
    private $orderId;
26
27
    /**
28
     * @var string|null
29
     * @SerializedName("OrderPartId")
30
     */
31
    private $orderPartId;
32
33
    public function getCaptureId(): ?string
34
    {
35
        return $this->captureId;
36
    }
37
38
    public function setCaptureId(?string $captureId): self
39
    {
40
        $this->captureId = $captureId;
41
42
        return $this;
43
    }
44
45
    public function getTransactionId(): ?string
46
    {
47
        return $this->transactionId;
48
    }
49
50
    public function setTransactionId(?string $transactionId): self
51
    {
52
        $this->transactionId = $transactionId;
53
54
        return $this;
55
    }
56
57
    public function getOrderId(): ?string
58
    {
59
        return $this->orderId;
60
    }
61
62
    public function setOrderId(?string $orderId): self
63
    {
64
        $this->orderId = $orderId;
65
66
        return $this;
67
    }
68
69
    public function getOrderPartId(): ?string
70
    {
71
        return $this->orderPartId;
72
    }
73
74
    public function setOrderPartId(?string $orderPartId): self
75
    {
76
        $this->orderPartId = $orderPartId;
77
78
        return $this;
79
    }
80
}
81