ErrorResponse::getProcessorMessage()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 1
b 0
f 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Ticketpark\SaferpayJson\Response;
6
7
use JMS\Serializer\Annotation\SerializedName;
8
use JMS\Serializer\Annotation\Type;
9
10
class ErrorResponse extends Response
11
{
12
    public const BEHAVIOUR_ABORT = 'ABORT';
13
    public const BEHAVIOUR_OTHER_MEANS = 'OTHER_MEANS';
14
    public const BEHAVIOUR_RETRY = 'RETRY';
15
    public const BEHAVIOUR_RETRY_LATER = 'RETRY_LATER';
16
17
    /**
18
     * @var string|null
19
     * @SerializedName("Behavior")
20
     * @Type("string")
21
     */
22
    private $behaviour;
23
24
    /**
25
     * @var string|null
26
     * @SerializedName("ErrorName")
27
     * @Type("string")
28
     */
29
    private $errorName;
30
31
    /**
32
     * @var string|null
33
     * @SerializedName("ErrorMessage")
34
     * @Type("string")
35
     */
36
    private $errorMessage;
37
38
    /**
39
     * @var string|null
40
     * @SerializedName("TransactionId")
41
     * @Type("string")
42
     */
43
    private $transactionId;
44
45
    /**
46
     * @var array|null
47
     * @SerializedName("ErrorDetail")
48
     * @Type("array")
49
     */
50
    private $errorDetail = [];
51
52
    /**
53
     * @var string|null
54
     * @SerializedName("ProcessorName")
55
     * @Type("string")
56
     */
57
    private $processorName;
58
59
    /**
60
     * @var string|null
61
     * @SerializedName("ProcessorResult")
62
     * @Type("string")
63
     */
64
    private $processorResult;
65
66
    /**
67
     * @var string|null
68
     * @SerializedName("ProcessorMessage")
69
     * @Type("string")
70
     */
71
    private $processorMessage;
72
73
    public function getBehaviour(): ?string
74
    {
75
        return $this->behaviour;
76
    }
77
78
    public function getErrorName(): ?string
79
    {
80
        return $this->errorName;
81
    }
82
83
    public function getErrorMessage(): ?string
84
    {
85
        return $this->errorMessage;
86
    }
87
88
    public function getTransactionId(): ?string
89
    {
90
        return $this->transactionId;
91
    }
92
93
    public function getErrorDetail(): ?array
94
    {
95
        return $this->errorDetail;
96
    }
97
98
    public function getProcessorName(): ?string
99
    {
100
        return $this->processorName;
101
    }
102
103
    public function getProcessorResult(): ?string
104
    {
105
        return $this->processorResult;
106
    }
107
108
    public function getProcessorMessage(): ?string
109
    {
110
        return $this->processorMessage;
111
    }
112
}
113