commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
lib
commercetools-api
src
Models
Customer
MyCustomerResetPasswordModel.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
MyCustomerResetPasswordModel
extends
JsonObjectModel
implements
MyCustomerResetPassword
21
{
26
protected
$tokenValue
;
27
32
protected
$newPassword
;
33
34
38
public
function
__construct
(
39
?
string
$tokenValue
=
null
,
40
?
string
$newPassword
=
null
41
) {
42
$this->tokenValue =
$tokenValue
;
43
$this->newPassword =
$newPassword
;
44
}
45
52
public
function
getTokenValue
()
53
{
54
if
(is_null($this->tokenValue)) {
56
$data = $this->
raw
(self::FIELD_TOKEN_VALUE);
57
if
(is_null($data)) {
58
return
null
;
59
}
60
$this->tokenValue = (string) $data;
61
}
62
63
return
$this->tokenValue
;
64
}
65
72
public
function
getNewPassword
()
73
{
74
if
(is_null($this->newPassword)) {
76
$data = $this->
raw
(self::FIELD_NEW_PASSWORD);
77
if
(is_null($data)) {
78
return
null
;
79
}
80
$this->newPassword = (string) $data;
81
}
82
83
return
$this->newPassword
;
84
}
85
86
90
public
function
setTokenValue
(?
string
$tokenValue
): void
91
{
92
$this->tokenValue =
$tokenValue
;
93
}
94
98
public
function
setNewPassword
(?
string
$newPassword
): void
99
{
100
$this->newPassword =
$newPassword
;
101
}
102
}
Commercetools\Api\Models\Customer\MyCustomerResetPasswordModel
Definition:
MyCustomerResetPasswordModel.php:21
Commercetools\Api\Models\Customer\MyCustomerResetPasswordModel\$newPassword
$newPassword
Definition:
MyCustomerResetPasswordModel.php:32
Commercetools\Api\Models\Customer\MyCustomerResetPasswordModel\setTokenValue
setTokenValue(?string $tokenValue)
Definition:
MyCustomerResetPasswordModel.php:90
Commercetools\Api\Models\Customer\MyCustomerResetPasswordModel\__construct
__construct(?string $tokenValue=null, ?string $newPassword=null)
Definition:
MyCustomerResetPasswordModel.php:38
Commercetools\Api\Models\Customer\MyCustomerResetPasswordModel\getTokenValue
getTokenValue()
Definition:
MyCustomerResetPasswordModel.php:52
Commercetools\Api\Models\Customer\MyCustomerResetPasswordModel\getNewPassword
getNewPassword()
Definition:
MyCustomerResetPasswordModel.php:72
Commercetools\Api\Models\Customer\MyCustomerResetPasswordModel\$tokenValue
$tokenValue
Definition:
MyCustomerResetPasswordModel.php:26
Commercetools\Api\Models\Customer\MyCustomerResetPasswordModel\setNewPassword
setNewPassword(?string $newPassword)
Definition:
MyCustomerResetPasswordModel.php:98
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\MyCustomerResetPassword
Definition:
MyCustomerResetPassword.php:15
Commercetools\Base\JsonObject
Definition:
JsonObject.php:15
Commercetools\Api\Models\Customer
Definition:
Customer.php:9
Generated by
1.9.1