InitializeResponse   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 36
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 7
dl 0
loc 36
rs 10
c 0
b 0
f 0
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getRedirectUrl() 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\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