Passed
Push — master ( 1aa207...da253c )
by Manuel
03:24
created

RiskFactors   A

Complexity

Total Complexity 6

Size/Duplication

Total Lines 68
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 18
c 1
b 0
f 0
dl 0
loc 68
rs 10
wmc 6

6 Methods

Rating   Name   Duplication   Size   Complexity  
A getAccountCreationDate() 0 3 1
A setAccountCreationDate() 0 5 1
A setPasswordLastChangeDate() 0 5 1
A setDeliveryType() 0 5 1
A getPasswordLastChangeDate() 0 3 1
A getDeliveryType() 0 3 1
1
<?php declare(strict_types=1);
2
3
namespace Ticketpark\SaferpayJson\Request\Container;
4
5
use JMS\Serializer\Annotation\SerializedName;
6
use JMS\Serializer\Annotation\Type;
7
8
final class RiskFactors
9
{
10
    const DELIVERY_TYPE_EMAIL = "EMAIL";
11
    const DELIVERY_TYPE_SHOP = "SHOP";
12
    const DELIVERY_TYPE_HOMEDELIVERY = "HOMEDELIVERY";
13
    const DELIVERY_TYPE_PICKUP = "PICKUP";
14
    const DELIVERY_TYPE_HQ = "HQ";
15
16
    /**
17
     * @var string|null
18
     * @SerializedName("DeliveryType")
19
     */
20
    private $deliveryType;
21
22
    /**
23
     * @var string|null
24
     * @SerializedName("AccountCreationDate")
25
     * @Type("string")
26
     */
27
    private $accountCreationDate;
28
29
    /**
30
     * @var string|null
31
     * @SerializedName("PasswordLastChangeDate")
32
     * @Type("string")
33
     */
34
    private $passwordLastChangeDate;
35
36
37
    public function getDeliveryType(): ?string
38
    {
39
        return $this->deliveryType;
40
    }
41
42
43
    public function setDeliveryType(?string $deliveryType): self
44
    {
45
        $this->deliveryType = $deliveryType;
46
47
        return $this;
48
    }
49
50
51
    public function getAccountCreationDate(): ?string
52
    {
53
        return $this->accountCreationDate;
54
    }
55
56
57
    public function setAccountCreationDate(?string $accountCreationDate): self
58
    {
59
        $this->accountCreationDate = $accountCreationDate;
60
61
        return $this;
62
    }
63
64
65
    public function getPasswordLastChangeDate(): ?string
66
    {
67
        return $this->passwordLastChangeDate;
68
    }
69
70
71
    public function setPasswordLastChangeDate(?string $passwordLastChangeDate): self
72
    {
73
        $this->passwordLastChangeDate = $passwordLastChangeDate;
74
75
        return $this;
76
    }
77
}
78