commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
lib
commercetools-api
src
Models
Customer
CustomerSetAuthenticationModeActionBuilder.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
CustomerSetAuthenticationModeActionBuilder
implements
Builder
22
{
27
private
$authMode;
28
33
private
$password;
34
42
public
function
getAuthMode
()
43
{
44
return
$this->authMode;
45
}
46
53
public
function
getPassword
()
54
{
55
return
$this->password;
56
}
57
62
public
function
withAuthMode
(?
string
$authMode)
63
{
64
$this->authMode = $authMode;
65
66
return
$this;
67
}
68
73
public
function
withPassword
(?
string
$password)
74
{
75
$this->password = $password;
76
77
return
$this;
78
}
79
80
81
public
function
build
():
CustomerSetAuthenticationModeAction
82
{
83
return
new
CustomerSetAuthenticationModeActionModel
(
84
$this->authMode,
85
$this->password
86
);
87
}
88
89
public
static
function
of
():
CustomerSetAuthenticationModeActionBuilder
90
{
91
return
new
self
();
92
}
93
}
Commercetools\Api\Models\Customer\CustomerSetAuthenticationModeActionBuilder
Definition:
CustomerSetAuthenticationModeActionBuilder.php:22
Commercetools\Api\Models\Customer\CustomerSetAuthenticationModeActionBuilder\getPassword
getPassword()
Definition:
CustomerSetAuthenticationModeActionBuilder.php:53
Commercetools\Api\Models\Customer\CustomerSetAuthenticationModeActionBuilder\of
static of()
Definition:
CustomerSetAuthenticationModeActionBuilder.php:89
Commercetools\Api\Models\Customer\CustomerSetAuthenticationModeActionBuilder\withAuthMode
withAuthMode(?string $authMode)
Definition:
CustomerSetAuthenticationModeActionBuilder.php:62
Commercetools\Api\Models\Customer\CustomerSetAuthenticationModeActionBuilder\withPassword
withPassword(?string $password)
Definition:
CustomerSetAuthenticationModeActionBuilder.php:73
Commercetools\Api\Models\Customer\CustomerSetAuthenticationModeActionBuilder\getAuthMode
getAuthMode()
Definition:
CustomerSetAuthenticationModeActionBuilder.php:42
Commercetools\Api\Models\Customer\CustomerSetAuthenticationModeActionBuilder\build
build()
Definition:
CustomerSetAuthenticationModeActionBuilder.php:81
Commercetools\Api\Models\Customer\CustomerSetAuthenticationModeActionModel
Definition:
CustomerSetAuthenticationModeActionModel.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\CustomerSetAuthenticationModeAction
Definition:
CustomerSetAuthenticationModeAction.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