Customer::setLastname()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 1
1
<?php
2
/*
3
 * This file is part of the MailChimpEcommerceBundle package.
4
 *
5
 * Copyright (c) 2017 kevin92dev.es
6
 *
7
 * For the full copyright and license information, please view the LICENSE
8
 * file that was distributed with this source code.
9
 *
10
 * Feel free to edit as you please, and have fun.
11
 *
12
 * @author Kevin Murillo <[email protected]>
13
 */
14
15
namespace Kevin92dev\MailChimpEcommerceBundle\Entities;
16
17
class Customer
18
{
19
    /**
20
     * A unique identifier for the customer.
21
     *
22
     * @var string
23
     */
24
    private $id;
25
26
    /**
27
     * The customer’s email address.
28
     *
29
     * @var string
30
     */
31
    private $email;
32
33
    /**
34
     * The customer’s opt-in status. This value will never overwrite the opt-in status of a pre-existing MailChimp
35
     * list member, but will apply to list members that are added through the e-commerce API endpoints.
36
     * Customers who don’t opt in to your MailChimp list will be added as Transactional members.
37
     *
38
     * @var bool
39
     */
40
    private $optInStatus;
41
42
    /**
43
     * The customer’s company.
44
     *
45
     * @var string
46
     */
47
    private $company;
48
49
    /**
50
     * The customer’s first name.
51
     *
52
     * @var string
53
     */
54
    private $firstname;
55
56
    /**
57
     * The customer’s last name.
58
     *
59
     * @var string
60
     */
61
    private $lastname;
62
63
    /**
64
     * The customer’s total order count.
65
     *
66
     * @var integer
67
     */
68
    private $ordersCount;
69
70
    /**
71
     * The total amount the customer has spent.
72
     *
73
     * @var float
74
     */
75
    private $totalSpent;
76
77
    /**
78
     * The customer’s address.
79
     *
80
     * @var Address
81
     */
82
    private $address;
83
84
    /**
85
     * @return string
86
     */
87
    public function getId()
88
    {
89
        return $this->id;
90
    }
91
92
    /**
93
     * @param string $id
94
     */
95
    public function setId($id)
96
    {
97
        $this->id = $id;
98
    }
99
100
    /**
101
     * @return string
102
     */
103
    public function getEmail()
104
    {
105
        return $this->email;
106
    }
107
108
    /**
109
     * @param string $email
110
     */
111
    public function setEmail($email)
112
    {
113
        $this->email = $email;
114
    }
115
116
    /**
117
     * @return bool
118
     */
119
    public function isOptInStatus()
120
    {
121
        return $this->optInStatus;
122
    }
123
124
    /**
125
     * @param bool $optInStatus
126
     */
127
    public function setOptInStatus($optInStatus)
128
    {
129
        $this->optInStatus = $optInStatus;
130
    }
131
132
    /**
133
     * @return string
134
     */
135
    public function getCompany()
136
    {
137
        return $this->company;
138
    }
139
140
    /**
141
     * @param string $company
142
     */
143
    public function setCompany($company)
144
    {
145
        $this->company = $company;
146
    }
147
148
    /**
149
     * @return string
150
     */
151
    public function getFirstname()
152
    {
153
        return $this->firstname;
154
    }
155
156
    /**
157
     * @param string $firstname
158
     */
159
    public function setFirstname($firstname)
160
    {
161
        $this->firstname = $firstname;
162
    }
163
164
    /**
165
     * @return string
166
     */
167
    public function getLastname()
168
    {
169
        return $this->lastname;
170
    }
171
172
    /**
173
     * @param string $lastname
174
     */
175
    public function setLastname($lastname)
176
    {
177
        $this->lastname = $lastname;
178
    }
179
180
    /**
181
     * @return int
182
     */
183
    public function getOrdersCount()
184
    {
185
        return $this->ordersCount;
186
    }
187
188
    /**
189
     * @param int $ordersCount
190
     */
191
    public function setOrdersCount($ordersCount)
192
    {
193
        $this->ordersCount = $ordersCount;
194
    }
195
196
    /**
197
     * @return float
198
     */
199
    public function getTotalSpent()
200
    {
201
        return $this->totalSpent;
202
    }
203
204
    /**
205
     * @param float $totalSpent
206
     */
207
    public function setTotalSpent($totalSpent)
208
    {
209
        $this->totalSpent = $totalSpent;
210
    }
211
212
    /**
213
     * @return Address
214
     */
215
    public function getAddress()
216
    {
217
        return $this->address;
218
    }
219
220
    /**
221
     * @param Address $address
222
     */
223
    public function setAddress($address)
224
    {
225
        $this->address = $address;
226
    }
227
}