commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
lib
commercetools-api
src
Models
Customer
MyCustomerChangePasswordBuilder.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
MyCustomerChangePasswordBuilder
implements
Builder
22
{
27
private
$version;
28
33
private
$currentPassword;
34
39
private
$newPassword;
40
47
public
function
getVersion
()
48
{
49
return
$this->version;
50
}
51
59
public
function
getCurrentPassword
()
60
{
61
return
$this->currentPassword;
62
}
63
70
public
function
getNewPassword
()
71
{
72
return
$this->newPassword;
73
}
74
79
public
function
withVersion
(?
int
$version)
80
{
81
$this->version = $version;
82
83
return
$this;
84
}
85
90
public
function
withCurrentPassword
(?
string
$currentPassword)
91
{
92
$this->currentPassword = $currentPassword;
93
94
return
$this;
95
}
96
101
public
function
withNewPassword
(?
string
$newPassword)
102
{
103
$this->newPassword = $newPassword;
104
105
return
$this;
106
}
107
108
109
public
function
build
():
MyCustomerChangePassword
110
{
111
return
new
MyCustomerChangePasswordModel
(
112
$this->version,
113
$this->currentPassword,
114
$this->newPassword
115
);
116
}
117
118
public
static
function
of
():
MyCustomerChangePasswordBuilder
119
{
120
return
new
self
();
121
}
122
}
Commercetools\Api\Models\Customer\MyCustomerChangePasswordBuilder
Definition:
MyCustomerChangePasswordBuilder.php:22
Commercetools\Api\Models\Customer\MyCustomerChangePasswordBuilder\withCurrentPassword
withCurrentPassword(?string $currentPassword)
Definition:
MyCustomerChangePasswordBuilder.php:90
Commercetools\Api\Models\Customer\MyCustomerChangePasswordBuilder\of
static of()
Definition:
MyCustomerChangePasswordBuilder.php:118
Commercetools\Api\Models\Customer\MyCustomerChangePasswordBuilder\withVersion
withVersion(?int $version)
Definition:
MyCustomerChangePasswordBuilder.php:79
Commercetools\Api\Models\Customer\MyCustomerChangePasswordBuilder\getCurrentPassword
getCurrentPassword()
Definition:
MyCustomerChangePasswordBuilder.php:59
Commercetools\Api\Models\Customer\MyCustomerChangePasswordBuilder\build
build()
Definition:
MyCustomerChangePasswordBuilder.php:109
Commercetools\Api\Models\Customer\MyCustomerChangePasswordBuilder\withNewPassword
withNewPassword(?string $newPassword)
Definition:
MyCustomerChangePasswordBuilder.php:101
Commercetools\Api\Models\Customer\MyCustomerChangePasswordBuilder\getVersion
getVersion()
Definition:
MyCustomerChangePasswordBuilder.php:47
Commercetools\Api\Models\Customer\MyCustomerChangePasswordBuilder\getNewPassword
getNewPassword()
Definition:
MyCustomerChangePasswordBuilder.php:70
Commercetools\Api\Models\Customer\MyCustomerChangePasswordModel
Definition:
MyCustomerChangePasswordModel.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\MyCustomerChangePassword
Definition:
MyCustomerChangePassword.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