commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
Loading...
Searching...
No Matches
lib
commercetools-api
src
Models
Customer
MyCustomerSigninModel.php
1
<?php
2
3
declare(strict_types=1);
9
namespace
Commercetools\Api\Models\Customer
;
10
11
use
Commercetools\Base\DateTimeImmutableCollection
;
12
use
Commercetools\Base\JsonObject
;
13
use
Commercetools\Base\JsonObjectModel
;
14
use
Commercetools\Base\MapperFactory
;
15
use stdClass;
16
20
final
class
MyCustomerSigninModel
extends
JsonObjectModel
implements
MyCustomerSignin
21
{
26
protected
$email
;
27
32
protected
$password
;
33
38
protected
$activeCartSignInMode
;
39
44
protected
$updateProductData
;
45
46
50
public
function
__construct
(
51
?
string
$email
=
null
,
52
?
string
$password
=
null
,
53
?
string
$activeCartSignInMode
=
null
,
54
?
bool
$updateProductData
=
null
55
) {
56
$this->email =
$email
;
57
$this->password =
$password
;
58
$this->activeCartSignInMode =
$activeCartSignInMode
;
59
$this->updateProductData =
$updateProductData
;
60
}
61
68
public
function
getEmail
()
69
{
70
if
(is_null($this->email)) {
72
$data = $this->
raw
(self::FIELD_EMAIL);
73
if
(is_null($data)) {
74
return
null
;
75
}
76
$this->email = (string) $data;
77
}
78
79
return
$this->email
;
80
}
81
88
public
function
getPassword
()
89
{
90
if
(is_null($this->password)) {
92
$data = $this->
raw
(self::FIELD_PASSWORD);
93
if
(is_null($data)) {
94
return
null
;
95
}
96
$this->password = (string) $data;
97
}
98
99
return
$this->password
;
100
}
101
111
public
function
getActiveCartSignInMode
()
112
{
113
if
(is_null($this->activeCartSignInMode)) {
115
$data = $this->
raw
(self::FIELD_ACTIVE_CART_SIGN_IN_MODE);
116
if
(is_null($data)) {
117
return
null
;
118
}
119
$this->activeCartSignInMode = (string) $data;
120
}
121
122
return
$this->activeCartSignInMode
;
123
}
124
134
public
function
getUpdateProductData
()
135
{
136
if
(is_null($this->updateProductData)) {
138
$data = $this->
raw
(self::FIELD_UPDATE_PRODUCT_DATA);
139
if
(is_null($data)) {
140
return
null
;
141
}
142
$this->updateProductData = (bool) $data;
143
}
144
145
return
$this->updateProductData
;
146
}
147
148
152
public
function
setEmail
(?
string
$email
): void
153
{
154
$this->email =
$email
;
155
}
156
160
public
function
setPassword
(?
string
$password
): void
161
{
162
$this->password =
$password
;
163
}
164
168
public
function
setActiveCartSignInMode
(?
string
$activeCartSignInMode
): void
169
{
170
$this->activeCartSignInMode =
$activeCartSignInMode
;
171
}
172
176
public
function
setUpdateProductData
(?
bool
$updateProductData
): void
177
{
178
$this->updateProductData =
$updateProductData
;
179
}
180
}
Commercetools\Api\Models\Customer\MyCustomerSigninModel
Definition
MyCustomerSigninModel.php:21
Commercetools\Api\Models\Customer\MyCustomerSigninModel\getPassword
getPassword()
Definition
MyCustomerSigninModel.php:88
Commercetools\Api\Models\Customer\MyCustomerSigninModel\setActiveCartSignInMode
setActiveCartSignInMode(?string $activeCartSignInMode)
Definition
MyCustomerSigninModel.php:168
Commercetools\Api\Models\Customer\MyCustomerSigninModel\setEmail
setEmail(?string $email)
Definition
MyCustomerSigninModel.php:152
Commercetools\Api\Models\Customer\MyCustomerSigninModel\setUpdateProductData
setUpdateProductData(?bool $updateProductData)
Definition
MyCustomerSigninModel.php:176
Commercetools\Api\Models\Customer\MyCustomerSigninModel\$email
$email
Definition
MyCustomerSigninModel.php:26
Commercetools\Api\Models\Customer\MyCustomerSigninModel\getActiveCartSignInMode
getActiveCartSignInMode()
Definition
MyCustomerSigninModel.php:111
Commercetools\Api\Models\Customer\MyCustomerSigninModel\getEmail
getEmail()
Definition
MyCustomerSigninModel.php:68
Commercetools\Api\Models\Customer\MyCustomerSigninModel\$updateProductData
$updateProductData
Definition
MyCustomerSigninModel.php:44
Commercetools\Api\Models\Customer\MyCustomerSigninModel\$password
$password
Definition
MyCustomerSigninModel.php:32
Commercetools\Api\Models\Customer\MyCustomerSigninModel\__construct
__construct(?string $email=null, ?string $password=null, ?string $activeCartSignInMode=null, ?bool $updateProductData=null)
Definition
MyCustomerSigninModel.php:50
Commercetools\Api\Models\Customer\MyCustomerSigninModel\$activeCartSignInMode
$activeCartSignInMode
Definition
MyCustomerSigninModel.php:38
Commercetools\Api\Models\Customer\MyCustomerSigninModel\getUpdateProductData
getUpdateProductData()
Definition
MyCustomerSigninModel.php:134
Commercetools\Api\Models\Customer\MyCustomerSigninModel\setPassword
setPassword(?string $password)
Definition
MyCustomerSigninModel.php:160
Commercetools\Base\BaseJsonObject\raw
raw(string $field)
Definition
BaseJsonObject.php:57
Commercetools\Base\DateTimeImmutableCollection
Definition
DateTimeImmutableCollection.php:21
Commercetools\Base\JsonObjectModel
Definition
JsonObjectModel.php:15
Commercetools\Base\MapperFactory
Definition
MapperFactory.php:16
Commercetools\Api\Models\Customer\MyCustomerSignin
Definition
MyCustomerSignin.php:15
Commercetools\Base\JsonObject
Definition
JsonObject.php:15
Commercetools\Api\Models\Customer
Definition
Customer.php:9
Generated by
1.9.8