CancelResponse   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 36
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 7
dl 0
loc 36
rs 10
c 0
b 0
f 0
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getTransactionId() 0 3 1
A getOrderId() 0 3 1
A getDate() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Ticketpark\SaferpayJson\Response\Transaction;
6
7
use JMS\Serializer\Annotation\SerializedName;
8
use JMS\Serializer\Annotation\Type;
9
use Ticketpark\SaferpayJson\Response\Response;
10
11
final class CancelResponse extends Response
12
{
13
    /**
14
     * @var string|null
15
     * @SerializedName("TransactionId")
16
     * @Type("string")
17
     */
18
    private $transactionId;
19
20
    /**
21
     * @var string|null
22
     * @SerializedName("OrderId")
23
     * @Type("string")
24
     */
25
    private $orderId;
26
27
    /**
28
     * @var string|null
29
     * @SerializedName("Date")
30
     * @Type("string")
31
     */
32
    private $date;
33
34
    public function getTransactionId(): ?string
35
    {
36
        return $this->transactionId;
37
    }
38
39
    public function getOrderId(): ?string
40
    {
41
        return $this->orderId;
42
    }
43
44
    public function getDate(): ?string
45
    {
46
        return $this->date;
47
    }
48
}
49