Completed
Push — master ( 5addfc...31be61 )
by Manuel
03:09
created

AliasInsertResponse::getToken()   A

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