commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
lib
commercetools-api
src
Models
Customer
CustomerSetAuthenticationModeActionModel.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
CustomerSetAuthenticationModeActionModel
extends
JsonObjectModel
implements
CustomerSetAuthenticationModeAction
21
{
22
public
const
DISCRIMINATOR_VALUE
=
'setAuthenticationMode'
;
27
protected
$action
;
28
33
protected
$authMode
;
34
39
protected
$password
;
40
41
45
public
function
__construct
(
46
?
string
$authMode
=
null
,
47
?
string
$password
=
null
,
48
?
string
$action
=
null
49
) {
50
$this->authMode =
$authMode
;
51
$this->password =
$password
;
52
$this->action =
$action
??
self::DISCRIMINATOR_VALUE
;
53
}
54
59
public
function
getAction
()
60
{
61
if
(is_null($this->action)) {
63
$data = $this->
raw
(self::FIELD_ACTION);
64
if
(is_null($data)) {
65
return
null
;
66
}
67
$this->action = (string) $data;
68
}
69
70
return
$this->action
;
71
}
72
80
public
function
getAuthMode
()
81
{
82
if
(is_null($this->authMode)) {
84
$data = $this->
raw
(self::FIELD_AUTH_MODE);
85
if
(is_null($data)) {
86
return
null
;
87
}
88
$this->authMode = (string) $data;
89
}
90
91
return
$this->authMode
;
92
}
93
100
public
function
getPassword
()
101
{
102
if
(is_null($this->password)) {
104
$data = $this->
raw
(self::FIELD_PASSWORD);
105
if
(is_null($data)) {
106
return
null
;
107
}
108
$this->password = (string) $data;
109
}
110
111
return
$this->password
;
112
}
113
114
118
public
function
setAuthMode
(?
string
$authMode
): void
119
{
120
$this->authMode =
$authMode
;
121
}
122
126
public
function
setPassword
(?
string
$password
): void
127
{
128
$this->password =
$password
;
129
}
130
}
Commercetools\Api\Models\Customer\CustomerSetAuthenticationModeActionModel
Definition:
CustomerSetAuthenticationModeActionModel.php:21
Commercetools\Api\Models\Customer\CustomerSetAuthenticationModeActionModel\__construct
__construct(?string $authMode=null, ?string $password=null, ?string $action=null)
Definition:
CustomerSetAuthenticationModeActionModel.php:45
Commercetools\Api\Models\Customer\CustomerSetAuthenticationModeActionModel\setPassword
setPassword(?string $password)
Definition:
CustomerSetAuthenticationModeActionModel.php:126
Commercetools\Api\Models\Customer\CustomerSetAuthenticationModeActionModel\$password
$password
Definition:
CustomerSetAuthenticationModeActionModel.php:39
Commercetools\Api\Models\Customer\CustomerSetAuthenticationModeActionModel\DISCRIMINATOR_VALUE
const DISCRIMINATOR_VALUE
Definition:
CustomerSetAuthenticationModeActionModel.php:22
Commercetools\Api\Models\Customer\CustomerSetAuthenticationModeActionModel\$authMode
$authMode
Definition:
CustomerSetAuthenticationModeActionModel.php:33
Commercetools\Api\Models\Customer\CustomerSetAuthenticationModeActionModel\getPassword
getPassword()
Definition:
CustomerSetAuthenticationModeActionModel.php:100
Commercetools\Api\Models\Customer\CustomerSetAuthenticationModeActionModel\$action
$action
Definition:
CustomerSetAuthenticationModeActionModel.php:27
Commercetools\Api\Models\Customer\CustomerSetAuthenticationModeActionModel\setAuthMode
setAuthMode(?string $authMode)
Definition:
CustomerSetAuthenticationModeActionModel.php:118
Commercetools\Api\Models\Customer\CustomerSetAuthenticationModeActionModel\getAuthMode
getAuthMode()
Definition:
CustomerSetAuthenticationModeActionModel.php:80
Commercetools\Api\Models\Customer\CustomerSetAuthenticationModeActionModel\getAction
getAction()
Definition:
CustomerSetAuthenticationModeActionModel.php:59
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\CustomerSetAuthenticationModeAction
Definition:
CustomerSetAuthenticationModeAction.php:15
Commercetools\Base\JsonObject
Definition:
JsonObject.php:15
Commercetools\Api\Models\Customer
Definition:
Customer.php:9
Generated by
1.9.1