Passed
Pull Request — master (#28)
by Manuel
09:19
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("IpAddress")
13
     */
14
    private $ipAddress;
15
    /**
16
     * @var string|null
17
     * @SerializedName("LanguageCode")
18
     */
19
    private $languageCode;
20
21
    /**
22
     * @var Address|null
23
     * @SerializedName("DeliveryAddress")
24
     * @Type("Ticketpark\SaferpayJson\Request\Container\Address")
25
     */
26
    private $deliveryAddress;
27
28
    /**
29
     * @var Address|null
30
     * @SerializedName("BillingAddress")
31
     * @Type("Ticketpark\SaferpayJson\Request\Container\Address")
32
     */
33
    private $billingAddress;
34
35
    public function getIpAddress(): ?string
36
    {
37
        return $this->ipAddress;
38
    }
39
40
    public function setIpAddress(?string $ipAddress): self
41
    {
42
        $this->ipAddress = $ipAddress;
43
44
        return $this;
45
    }
46
47
    public function getLanguageCode(): ?string
48
    {
49
        return $this->languageCode;
50
    }
51
52
    public function setLanguageCode(?string $languageCode): self
53
    {
54
        $this->languageCode = $languageCode;
55
56
        return $this;
57
    }
58
59
    public function getDeliveryAddress(): ?Address
60
    {
61
        return $this->deliveryAddress;
62
    }
63
64
    public function setDeliveryAddress(?Address $deliveryAddress): self
65
    {
66
        $this->deliveryAddress = $deliveryAddress;
67
68
        return $this;
69
    }
70
71
    public function getBillingAddress(): ?Address
72
    {
73
        return $this->billingAddress;
74
    }
75
76
    public function setBillingAddress(?Address $billingAddress): self
77
    {
78
        $this->billingAddress = $billingAddress;
79
80
        return $this;
81
    }
82
}
83