commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
lib
commercetools-api
src
Models
Customer
CustomerResetPasswordBuilder.php
1
<?php
2
3
declare(strict_types=1);
9
namespace
Commercetools\Api\Models\Customer
;
10
11
use
Commercetools\Base\Builder
;
12
use
Commercetools\Base\DateTimeImmutableCollection
;
13
use
Commercetools\Base\JsonObject
;
14
use
Commercetools\Base\JsonObjectModel
;
15
use
Commercetools\Base\MapperFactory
;
16
use stdClass;
17
21
final
class
CustomerResetPasswordBuilder
implements
Builder
22
{
27
private
$tokenValue;
28
33
private
$newPassword;
34
39
private
$version;
40
47
public
function
getTokenValue
()
48
{
49
return
$this->tokenValue;
50
}
51
58
public
function
getNewPassword
()
59
{
60
return
$this->newPassword;
61
}
62
69
public
function
getVersion
()
70
{
71
return
$this->version;
72
}
73
78
public
function
withTokenValue
(?
string
$tokenValue)
79
{
80
$this->tokenValue = $tokenValue;
81
82
return
$this;
83
}
84
89
public
function
withNewPassword
(?
string
$newPassword)
90
{
91
$this->newPassword = $newPassword;
92
93
return
$this;
94
}
95
100
public
function
withVersion
(?
int
$version)
101
{
102
$this->version = $version;
103
104
return
$this;
105
}
106
107
108
public
function
build
():
CustomerResetPassword
109
{
110
return
new
CustomerResetPasswordModel
(
111
$this->tokenValue,
112
$this->newPassword,
113
$this->version
114
);
115
}
116
117
public
static
function
of
():
CustomerResetPasswordBuilder
118
{
119
return
new
self
();
120
}
121
}
Commercetools\Api\Models\Customer\CustomerResetPasswordBuilder
Definition:
CustomerResetPasswordBuilder.php:22
Commercetools\Api\Models\Customer\CustomerResetPasswordBuilder\withNewPassword
withNewPassword(?string $newPassword)
Definition:
CustomerResetPasswordBuilder.php:89
Commercetools\Api\Models\Customer\CustomerResetPasswordBuilder\withTokenValue
withTokenValue(?string $tokenValue)
Definition:
CustomerResetPasswordBuilder.php:78
Commercetools\Api\Models\Customer\CustomerResetPasswordBuilder\build
build()
Definition:
CustomerResetPasswordBuilder.php:108
Commercetools\Api\Models\Customer\CustomerResetPasswordBuilder\getTokenValue
getTokenValue()
Definition:
CustomerResetPasswordBuilder.php:47
Commercetools\Api\Models\Customer\CustomerResetPasswordBuilder\getNewPassword
getNewPassword()
Definition:
CustomerResetPasswordBuilder.php:58
Commercetools\Api\Models\Customer\CustomerResetPasswordBuilder\withVersion
withVersion(?int $version)
Definition:
CustomerResetPasswordBuilder.php:100
Commercetools\Api\Models\Customer\CustomerResetPasswordBuilder\getVersion
getVersion()
Definition:
CustomerResetPasswordBuilder.php:69
Commercetools\Api\Models\Customer\CustomerResetPasswordBuilder\of
static of()
Definition:
CustomerResetPasswordBuilder.php:117
Commercetools\Api\Models\Customer\CustomerResetPasswordModel
Definition:
CustomerResetPasswordModel.php:21
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\CustomerResetPassword
Definition:
CustomerResetPassword.php:15
Commercetools\Base\Builder
Definition:
Builder.php:16
Commercetools\Base\JsonObject
Definition:
JsonObject.php:15
Commercetools\Api\Models\Customer
Definition:
Customer.php:9
Generated by
1.9.1