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

Payer   A

Complexity

Total Complexity 5

Size/Duplication

Total Lines 59
Duplicated Lines 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
eloc 11
c 2
b 0
f 0
dl 0
loc 59
rs 10
wmc 5

5 Methods

Rating   Name   Duplication   Size   Complexity  
A getId() 0 3 1
A getIpAddress() 0 3 1
A getDeliveryAddress() 0 3 1
A getBillingAddress() 0 3 1
A getIpLocation() 0 3 1
1
<?php declare(strict_types=1);
2
3
namespace Ticketpark\SaferpayJson\Response\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
     * @Type("string")
20
     */
21
    private $ipAddress;
22
23
    /**
24
     * @var string|null
25
     * @SerializedName("IpLocation")
26
     * @Type("string")
27
     */
28
    private $ipLocation;
29
30
    /**
31
     * @var Address|null
32
     * @SerializedName("DeliveryAddress")
33
     * @Type("Ticketpark\SaferpayJson\Response\Container\Address")
34
     */
35
    private $deliveryAddress;
36
37
    /**
38
     * @var Address|null
39
     * @SerializedName("BillingAddress")
40
     * @Type("Ticketpark\SaferpayJson\Response\Container\Address")
41
     */
42
    private $billingAddress;
43
44
    public function getId(): ?string
45
    {
46
        return $this->id;
47
    }
48
49
    public function getIpAddress(): ?string
50
    {
51
        return $this->ipAddress;
52
    }
53
54
    public function getIpLocation(): ?string
55
    {
56
        return $this->ipLocation;
57
    }
58
59
    public function getDeliveryAddress(): ?Address
60
    {
61
        return $this->deliveryAddress;
62
    }
63
64
    public function getBillingAddress(): ?Address
65
    {
66
        return $this->billingAddress;
67
    }
68
}
69