commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
lib
commercetools-api
src
Models
Customer
CustomerChangePasswordBuilder.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
CustomerChangePasswordBuilder
implements
Builder
22
{
27
private
$id;
28
33
private
$version;
34
39
private
$currentPassword;
40
45
private
$newPassword;
46
53
public
function
getId
()
54
{
55
return
$this->id;
56
}
57
64
public
function
getVersion
()
65
{
66
return
$this->version;
67
}
68
76
public
function
getCurrentPassword
()
77
{
78
return
$this->currentPassword;
79
}
80
87
public
function
getNewPassword
()
88
{
89
return
$this->newPassword;
90
}
91
96
public
function
withId
(?
string
$id)
97
{
98
$this->
id
= $id;
99
100
return
$this;
101
}
102
107
public
function
withVersion
(?
int
$version)
108
{
109
$this->version = $version;
110
111
return
$this;
112
}
113
118
public
function
withCurrentPassword
(?
string
$currentPassword)
119
{
120
$this->currentPassword = $currentPassword;
121
122
return
$this;
123
}
124
129
public
function
withNewPassword
(?
string
$newPassword)
130
{
131
$this->newPassword = $newPassword;
132
133
return
$this;
134
}
135
136
137
public
function
build
():
CustomerChangePassword
138
{
139
return
new
CustomerChangePasswordModel
(
140
$this->
id
,
141
$this->version,
142
$this->currentPassword,
143
$this->newPassword
144
);
145
}
146
147
public
static
function
of
():
CustomerChangePasswordBuilder
148
{
149
return
new
self
();
150
}
151
}
Commercetools\Api\Models\Customer\CustomerChangePasswordBuilder
Definition:
CustomerChangePasswordBuilder.php:22
Commercetools\Api\Models\Customer\CustomerChangePasswordBuilder\withCurrentPassword
withCurrentPassword(?string $currentPassword)
Definition:
CustomerChangePasswordBuilder.php:118
Commercetools\Api\Models\Customer\CustomerChangePasswordBuilder\of
static of()
Definition:
CustomerChangePasswordBuilder.php:147
Commercetools\Api\Models\Customer\CustomerChangePasswordBuilder\getVersion
getVersion()
Definition:
CustomerChangePasswordBuilder.php:64
Commercetools\Api\Models\Customer\CustomerChangePasswordBuilder\getCurrentPassword
getCurrentPassword()
Definition:
CustomerChangePasswordBuilder.php:76
Commercetools\Api\Models\Customer\CustomerChangePasswordBuilder\withVersion
withVersion(?int $version)
Definition:
CustomerChangePasswordBuilder.php:107
Commercetools\Api\Models\Customer\CustomerChangePasswordBuilder\build
build()
Definition:
CustomerChangePasswordBuilder.php:137
Commercetools\Api\Models\Customer\CustomerChangePasswordBuilder\withNewPassword
withNewPassword(?string $newPassword)
Definition:
CustomerChangePasswordBuilder.php:129
Commercetools\Api\Models\Customer\CustomerChangePasswordBuilder\withId
withId(?string $id)
Definition:
CustomerChangePasswordBuilder.php:96
Commercetools\Api\Models\Customer\CustomerChangePasswordBuilder\getId
getId()
Definition:
CustomerChangePasswordBuilder.php:53
Commercetools\Api\Models\Customer\CustomerChangePasswordBuilder\getNewPassword
getNewPassword()
Definition:
CustomerChangePasswordBuilder.php:87
Commercetools\Api\Models\Customer\CustomerChangePasswordModel
Definition:
CustomerChangePasswordModel.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\CustomerChangePassword
Definition:
CustomerChangePassword.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