InitializeResponse::getRedirectUrl()   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\PaymentPage;
6
7
use JMS\Serializer\Annotation\SerializedName;
8
use JMS\Serializer\Annotation\Type;
9
use Ticketpark\SaferpayJson\Response\Response;
10
11
final class InitializeResponse extends Response
12
{
13
    /**
14
     * @var string|null
15
     * @SerializedName("Token")
16
     * @Type("string")
17
     */
18
    private $token;
19
20
    /**
21
     * @var \DateTime|null
22
     * @SerializedName("Expiration")
23
     * @Type("DateTime<'Y-m-d\TH:i:s.uT'>")
24
     */
25
    private $expiration;
26
27
    /**
28
     * @var string|null
29
     * @SerializedName("RedirectUrl")
30
     * @Type("string")
31
     */
32
    private $redirectUrl;
33
34
    public function getToken(): ?string
35
    {
36
        return $this->token;
37
    }
38
39
    public function getExpiration(): ?\DateTime
40
    {
41
        return $this->expiration;
42
    }
43
44
    public function getRedirectUrl(): ?string
45
    {
46
        return $this->redirectUrl;
47
    }
48
}
49