GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

PayerInfo::setPhone()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
1
<?php
2
3
namespace Onend\PayPal\Payment\Model;
4
5
use JMS\Serializer\Annotation as JMS;
6
7
use Onend\PayPal\Common\Model\AbstractModel;
8
9
class PayerInfo extends AbstractModel
10
{
11
    /**
12
     * @JMS\Type("string")
13
     *
14
     * @var string
15
     */
16
    protected $email;
17
18
    /**
19
     * @JMS\Type("string")
20
     * @JMS\SerializedName("first_name")
21
     *
22
     * @var string
23
     */
24
    protected $firstName;
25
26
    /**
27
     * @JMS\Type("string")
28
     * @JMS\SerializedName("last_name")
29
     *
30
     * @var string
31
     */
32
    protected $lastName;
33
34
    /**
35
     * @JMS\Type("string")
36
     * @JMS\SerializedName("payer_id")
37
     *
38
     * @var string
39
     */
40
    protected $payerId;
41
42
    /**
43
     * @JMS\Type("string")
44
     *
45
     * @var string
46
     */
47
    protected $phone;
48
49
    /**
50
     * @JMS\Type("Onend\PayPal\Payment\Model\ShippingAddress")
51
     * @JMS\SerializedName("shipping_address")
52
     *
53
     * @var ShippingAddress
54
     */
55
    protected $shippingAddress;
56
57
    /**
58
     * @param string $email
59
     */
60
    public function setEmail($email)
61
    {
62
        $this->email = $email;
63
    }
64
65
    /**
66
     * @return string
67
     */
68
    public function getEmail()
69
    {
70
        return $this->email;
71
    }
72
73
    /**
74
     * @param string $firstName
75
     */
76
    public function setFirstName($firstName)
77
    {
78
        $this->firstName = $firstName;
79
    }
80
81
    /**
82
     * @return string
83
     */
84
    public function getFirstName()
85
    {
86
        return $this->firstName;
87
    }
88
89
    /**
90
     * @param string $lastName
91
     */
92
    public function setLastName($lastName)
93
    {
94
        $this->lastName = $lastName;
95
    }
96
97
    /**
98
     * @return string
99
     */
100
    public function getLastName()
101
    {
102
        return $this->lastName;
103
    }
104
105
    /**
106
     * @param string $payerId
107
     */
108
    public function setPayerId($payerId)
109
    {
110
        $this->payerId = $payerId;
111
    }
112
113
    /**
114
     * @return string
115
     */
116
    public function getPayerId()
117
    {
118
        return $this->payerId;
119
    }
120
121
    /**
122
     * @param string $phone
123
     */
124
    public function setPhone($phone)
125
    {
126
        $this->phone = $phone;
127
    }
128
129
    /**
130
     * @return string
131
     */
132
    public function getPhone()
133
    {
134
        return $this->phone;
135
    }
136
137
    /**
138
     * @param ShippingAddress $shippingAddress
139
     */
140
    public function setShippingAddress(ShippingAddress $shippingAddress)
141
    {
142
        $this->shippingAddress = $shippingAddress;
143
    }
144
145
    /**
146
     * @return ShippingAddress
147
     */
148
    public function getShippingAddress()
149
    {
150
        return $this->shippingAddress;
151
    }
152
}
153