CaptureReference   A
last analyzed

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