Completed
Pull Request — master (#141)
by Alexander
05:06
created

Buyer::getLastName()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
cc 1
eloc 2
nc 1
nop 0
crap 1
1
<?php
2
3
namespace Yandex\Market\Partner\Models;
4
5
use Yandex\Common\Model;
6
7
class Buyer extends Model
8
{
9
10
    protected $id = null;
11
12
    protected $lastName = null;
13
14
    protected $firstName = null;
15
16
    protected $middleName = null;
17
18
    protected $phone = null;
19
20
    protected $email = null;
21
22
    protected $mappingClasses = [];
23
24
    protected $propNameMap = [];
25
26
    /**
27
     * Retrieve the id property
28
     *
29
     * @return string|null
30
     */
31 1
    public function getId()
32
    {
33 1
        return $this->id;
34
    }
35
36
    /**
37
     * Set the id property
38
     *
39
     * @param string $id
40
     * @return $this
41
     */
42
    public function setId($id)
43
    {
44
        $this->id = $id;
45
        return $this;
46
    }
47
48
    /**
49
     * Retrieve the lastName property
50
     *
51
     * @return string|null
52
     */
53 1
    public function getLastName()
54
    {
55 1
        return $this->lastName;
56
    }
57
58
    /**
59
     * Set the lastName property
60
     *
61
     * @param string $lastName
62
     * @return $this
63
     */
64
    public function setLastName($lastName)
65
    {
66
        $this->lastName = $lastName;
67
        return $this;
68
    }
69
70
    /**
71
     * Retrieve the firstName property
72
     *
73
     * @return string|null
74
     */
75 1
    public function getFirstName()
76
    {
77 1
        return $this->firstName;
78
    }
79
80
    /**
81
     * Set the firstName property
82
     *
83
     * @param string $firstName
84
     * @return $this
85
     */
86
    public function setFirstName($firstName)
87
    {
88
        $this->firstName = $firstName;
89
        return $this;
90
    }
91
92
    /**
93
     * Retrieve the middleName property
94
     *
95
     * @return string|null
96
     */
97 1
    public function getMiddleName()
98
    {
99 1
        return $this->middleName;
100
    }
101
102
    /**
103
     * Set the middleName property
104
     *
105
     * @param string $middleName
106
     * @return $this
107
     */
108
    public function setMiddleName($middleName)
109
    {
110
        $this->middleName = $middleName;
111
        return $this;
112
    }
113
114
    /**
115
     * Retrieve the phone property
116
     *
117
     * @return string|null
118
     */
119 1
    public function getPhone()
120
    {
121 1
        return $this->phone;
122
    }
123
124
    /**
125
     * Set the phone property
126
     *
127
     * @param string $phone
128
     * @return $this
129
     */
130
    public function setPhone($phone)
131
    {
132
        $this->phone = $phone;
133
        return $this;
134
    }
135
136
    /**
137
     * Retrieve the email property
138
     *
139
     * @return string|null
140
     */
141 1
    public function getEmail()
142
    {
143 1
        return $this->email;
144
    }
145
146
    /**
147
     * Set the email property
148
     *
149
     * @param string $email
150
     * @return $this
151
     */
152
    public function setEmail($email)
153
    {
154
        $this->email = $email;
155
        return $this;
156
    }
157
}
158