Payer::getId()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
c 0
b 0
f 0
nc 1
nop 0
dl 0
loc 3
rs 10
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Ticketpark\SaferpayJson\Request\Container;
6
7
use JMS\Serializer\Annotation\SerializedName;
8
use JMS\Serializer\Annotation\Type;
9
10
final class Payer
11
{
12
    /**
13
     * @var string|null
14
     * @SerializedName("Id")
15
     */
16
    private $id;
17
18
    /**
19
     * @var string|null
20
     * @SerializedName("IpAddress")
21
     */
22
    private $ipAddress;
23
    /**
24
     * @var string|null
25
     * @SerializedName("LanguageCode")
26
     */
27
    private $languageCode;
28
29
    /**
30
     * @var Address|null
31
     * @SerializedName("DeliveryAddress")
32
     * @Type("Ticketpark\SaferpayJson\Request\Container\Address")
33
     */
34
    private $deliveryAddress;
35
36
    /**
37
     * @var Address|null
38
     * @SerializedName("BillingAddress")
39
     * @Type("Ticketpark\SaferpayJson\Request\Container\Address")
40
     */
41
    private $billingAddress;
42
43
    public function getId(): ?string
44
    {
45
        return $this->id;
46
    }
47
48
    public function setId(?string $id): self
49
    {
50
        $this->id = $id;
51
52
        return $this;
53
    }
54
55
    public function getIpAddress(): ?string
56
    {
57
        return $this->ipAddress;
58
    }
59
60
    public function setIpAddress(?string $ipAddress): self
61
    {
62
        $this->ipAddress = $ipAddress;
63
64
        return $this;
65
    }
66
67
    public function getLanguageCode(): ?string
68
    {
69
        return $this->languageCode;
70
    }
71
72
    public function setLanguageCode(?string $languageCode): self
73
    {
74
        $this->languageCode = $languageCode;
75
76
        return $this;
77
    }
78
79
    public function getDeliveryAddress(): ?Address
80
    {
81
        return $this->deliveryAddress;
82
    }
83
84
    public function setDeliveryAddress(?Address $deliveryAddress): self
85
    {
86
        $this->deliveryAddress = $deliveryAddress;
87
88
        return $this;
89
    }
90
91
    public function getBillingAddress(): ?Address
92
    {
93
        return $this->billingAddress;
94
    }
95
96
    public function setBillingAddress(?Address $billingAddress): self
97
    {
98
        $this->billingAddress = $billingAddress;
99
100
        return $this;
101
    }
102
}
103