AliasInsertResponse::getRedirect()   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\SecureCardData;
6
7
use JMS\Serializer\Annotation\SerializedName;
8
use JMS\Serializer\Annotation\Type;
9
use Ticketpark\SaferpayJson\Response\Container\Redirect;
10
use Ticketpark\SaferpayJson\Response\Response;
11
12
final class AliasInsertResponse extends Response
13
{
14
    /**
15
     * @var string|null
16
     * @SerializedName("Token")
17
     * @Type("string")
18
     */
19
    private $token;
20
21
    /**
22
     * @var \DateTime|null
23
     * @SerializedName("Expiration")
24
     * @Type("DateTime<'Y-m-d\TH:i:s.uT'>")
25
     */
26
    private $expiration;
27
28
    /**
29
     * @var bool|null
30
     * @SerializedName("RedirectRequired")
31
     * @Type("bool")
32
     */
33
    private $redirectRequired;
34
35
    /**
36
     * @var Redirect|null
37
     * @SerializedName("Redirect")
38
     * @Type("Ticketpark\SaferpayJson\Response\Container\Redirect")
39
     */
40
    private $redirect;
41
42
    public function getToken(): ?string
43
    {
44
        return $this->token;
45
    }
46
47
    public function getExpiration(): ?\DateTime
48
    {
49
        return $this->expiration;
50
    }
51
52
    public function isRedirectRequired(): ?bool
53
    {
54
        return $this->redirectRequired;
55
    }
56
57
    public function getRedirect(): ?Redirect
58
    {
59
        return $this->redirect;
60
    }
61
}
62