GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

TransactionLog::getTransactionId()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
namespace zaporylie\Vipps\Model\Payment;
4
5
use JMS\Serializer\Annotation as Serializer;
6
7
/**
8
 * Class TransactionLog
9
 *
10
 * @package Vipps\Model\Payment
11
 */
12
class TransactionLog
13
{
14
15
    /**
16
     * @var \DateTimeInterface
17
     * @Serializer\Type("DateTime<'Y-m-d\TH:i:s.u\Z'>")
18
     */
19
    protected $timeStamp;
20
21
    /**
22
     * @var string
23
     * @Serializer\Type("bool")
24
     */
25
    protected $operationSuccess;
26
27
    /**
28
     * @var string
29
     * @Serializer\Type("string")
30
     */
31
    protected $operation;
32
33
    /**
34
     * @var int
35
     * @Serializer\Type("integer")
36
     */
37
    protected $amount;
38
39
    /**
40
     * @var string
41
     * @Serializer\Type("string")
42
     */
43
    protected $transactionId;
44
45
    /**
46
     * @var string
47
     * @Serializer\Type("string")
48
     */
49
    protected $transactionText;
50
51
    /**
52
     * @var string
53
     * @Serializer\Type("string")
54
     */
55
    protected $requestId;
56
57
    /**
58
     * Gets timeStamp value.
59
     *
60
     * @return \DateTimeInterface
61
     */
62
    public function getTimeStamp()
63
    {
64
        return $this->timeStamp;
65
    }
66
67
    /**
68
     * Sets timeStamp variable.
69
     *
70
     * @param \DateTimeInterface $timeStamp
71
     *
72
     * @return $this
73
     */
74
    public function setTimeStamp(\DateTimeInterface $timeStamp)
75
    {
76
        $this->timeStamp = $timeStamp;
77
        return $this;
78
    }
79
80
    /**
81
     * Gets operation value.
82
     *
83
     * @return string
84
     */
85
    public function getOperation()
86
    {
87
        return $this->operation;
88
    }
89
90
    /**
91
     * Sets operation variable.
92
     *
93
     * @param string $operation
94
     *
95
     * @return $this
96
     */
97
    public function setOperation($operation)
98
    {
99
        $this->operation = $operation;
100
        return $this;
101
    }
102
103
    /**
104
     * Gets operation success value.
105
     *
106
     * @return bool
107
     */
108
    public function getOperationSuccess()
109
    {
110
        return $this->operationSuccess;
111
    }
112
113
    /**
114
     * Sets operation success variable.
115
     *
116
     * @param bool $operation
117
     *
118
     * @return $this
119
     */
120
    public function setOperationSuccess($operation)
121
    {
122
        $this->operationSuccess = $operation;
0 ignored issues
show
Documentation Bug introduced by
The property $operationSuccess was declared of type string, but $operation is of type boolean. Maybe add a type cast?

This check looks for assignments to scalar types that may be of the wrong type.

To ensure the code behaves as expected, it may be a good idea to add an explicit type cast.

$answer = 42;

$correct = false;

$correct = (bool) $answer;
Loading history...
123
        return $this;
124
    }
125
126
    /**
127
     * Gets amount value.
128
     *
129
     * @return int
130
     */
131
    public function getAmount()
132
    {
133
        return $this->amount;
134
    }
135
136
    /**
137
     * Sets amount variable.
138
     *
139
     * @param int $amount
140
     *
141
     * @return $this
142
     */
143
    public function setAmount($amount)
144
    {
145
        $this->amount = $amount;
146
        return $this;
147
    }
148
149
    /**
150
     * Gets transactionId value.
151
     *
152
     * @return string
153
     */
154
    public function getTransactionId()
155
    {
156
        return $this->transactionId;
157
    }
158
159
    /**
160
     * Sets transactionId variable.
161
     *
162
     * @param string $transactionId
163
     *
164
     * @return $this
165
     */
166
    public function setTransactionId($transactionId)
167
    {
168
        $this->transactionId = $transactionId;
169
        return $this;
170
    }
171
172
    /**
173
     * Gets transactionText value.
174
     *
175
     * @return string
176
     */
177
    public function getTransactionText()
178
    {
179
        return $this->transactionText;
180
    }
181
182
    /**
183
     * Sets transactionText variable.
184
     *
185
     * @param string $transactionText
186
     *
187
     * @return $this
188
     */
189
    public function setTransactionText($transactionText)
190
    {
191
        $this->transactionText = $transactionText;
192
        return $this;
193
    }
194
195
    /**
196
     * Gets requestId value.
197
     *
198
     * @return string
199
     */
200
    public function getRequestId()
201
    {
202
        return $this->requestId;
203
    }
204
205
    /**
206
     * Sets requestId variable.
207
     *
208
     * @param string $requestId
209
     *
210
     * @return $this
211
     */
212
    public function setRequestId($requestId)
213
    {
214
        $this->requestId = $requestId;
215
        return $this;
216
    }
217
}
218