Passed
Pull Request — master (#34)
by
unknown
04:37
created

Payer::getBillingAddress()   A

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