TransactionReference::getTransactionId()   A
last analyzed

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
2
3
declare(strict_types=1);
4
5
namespace Ticketpark\SaferpayJson\Request\Container;
6
7
use JMS\Serializer\Annotation\SerializedName;
8
9
final class TransactionReference
10
{
11
    /**
12
     * @var string|null
13
     * @SerializedName("TransactionId")
14
     */
15
    private $transactionId;
16
17
    /**
18
     * @var string|null
19
     * @SerializedName("OrderId")
20
     */
21
    private $orderId;
22
23
    public function getTransactionId(): ?string
24
    {
25
        return $this->transactionId;
26
    }
27
28
    public function setTransactionId(?string $transactionId): self
29
    {
30
        $this->transactionId = $transactionId;
31
32
        return $this;
33
    }
34
35
    public function getOrderId(): ?string
36
    {
37
        return $this->orderId;
38
    }
39
40
    public function setOrderId(?string $orderId): self
41
    {
42
        $this->orderId = $orderId;
43
44
        return $this;
45
    }
46
}
47