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

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