CaptureResponse   A
last analyzed

Complexity

Total Complexity 5

Size/Duplication

Total Lines 63
Duplicated Lines 0 %

Importance

Changes 3
Bugs 0 Features 0
Metric Value
eloc 13
dl 0
loc 63
rs 10
c 3
b 0
f 0
wmc 5

5 Methods

Rating   Name   Duplication   Size   Complexity  
A getInvoice() 0 3 1
A getStatus() 0 3 1
A getCaptureId() 0 3 1
A getDate() 0 3 1
A getTransactionId() 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\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