AliasInsertResponse   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 48
Duplicated Lines 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
wmc 4
eloc 9
c 2
b 0
f 0
dl 0
loc 48
rs 10

4 Methods

Rating   Name   Duplication   Size   Complexity  
A getRedirect() 0 3 1
A isRedirectRequired() 0 3 1
A getExpiration() 0 3 1
A getToken() 0 3 1
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