CaptureResponse::getInvoice()   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\Response\Transaction;
6
7
use JMS\Serializer\Annotation\SerializedName;
8
use JMS\Serializer\Annotation\Type;
9
use Ticketpark\SaferpayJson\Response\Container\Invoice;
10
use Ticketpark\SaferpayJson\Response\Response;
11
12
final class CaptureResponse extends Response
13
{
14
    public const STATUS_PENDING = 'PENDING';
15
    public const STATUS_CAPTURED = 'CAPTURED';
16
17
    /**
18
     * @var string|null
19
     * @SerializedName("TransactionId")
20
     * @Type("string")
21
     */
22
    private $transactionId;
23
24
    /**
25
     * @var string|null
26
     * @SerializedName("CaptureId")
27
     * @Type("string")
28
     */
29
    private $captureId;
30
31
    /**
32
     * @var string|null
33
     * @SerializedName("Status")
34
     * @Type("string")
35
     */
36
    private $status;
37
38
    /**
39
     * @var string|null
40
     * @SerializedName("Date")
41
     * @Type("string")
42
     */
43
    private $date;
44
45
    /**
46
     * @var Invoice|null
47
     * @SerializedName("Invoice")
48
     * @Type("Ticketpark\SaferpayJson\Response\Container\Invoice")
49
     */
50
    private $invoice;
51
52
    public function getTransactionId(): ?string
53
    {
54
        return $this->transactionId;
55
    }
56
57
    public function getCaptureId(): ?string
58
    {
59
        return $this->captureId;
60
    }
61
62
    public function getStatus(): ?string
63
    {
64
        return $this->status;
65
    }
66
67
    public function getDate(): ?string
68
    {
69
        return $this->date;
70
    }
71
72
    public function getInvoice(): ?Invoice
73
    {
74
        return $this->invoice;
75
    }
76
}
77