commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
lib
commercetools-api
src
Models
Customer
CustomerCreateEmailTokenModel.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
CustomerCreateEmailTokenModel
extends
JsonObjectModel
implements
CustomerCreateEmailToken
21
{
26
protected
$id
;
27
32
protected
$version
;
33
38
protected
$ttlMinutes
;
39
40
44
public
function
__construct
(
45
?
string
$id
=
null
,
46
?
int
$version
=
null
,
47
?
int
$ttlMinutes
=
null
48
) {
49
$this->
id
=
$id
;
50
$this->version =
$version
;
51
$this->ttlMinutes =
$ttlMinutes
;
52
}
53
60
public
function
getId
()
61
{
62
if
(is_null($this->
id
)) {
64
$data = $this->
raw
(self::FIELD_ID);
65
if
(is_null($data)) {
66
return
null
;
67
}
68
$this->
id
= (string) $data;
69
}
70
71
return
$this->id
;
72
}
73
80
public
function
getVersion
()
81
{
82
if
(is_null($this->version)) {
84
$data = $this->
raw
(self::FIELD_VERSION);
85
if
(is_null($data)) {
86
return
null
;
87
}
88
$this->version = (int) $data;
89
}
90
91
return
$this->version
;
92
}
93
100
public
function
getTtlMinutes
()
101
{
102
if
(is_null($this->ttlMinutes)) {
104
$data = $this->
raw
(self::FIELD_TTL_MINUTES);
105
if
(is_null($data)) {
106
return
null
;
107
}
108
$this->ttlMinutes = (int) $data;
109
}
110
111
return
$this->ttlMinutes
;
112
}
113
114
118
public
function
setId
(?
string
$id
): void
119
{
120
$this->
id
=
$id
;
121
}
122
126
public
function
setVersion
(?
int
$version
): void
127
{
128
$this->version =
$version
;
129
}
130
134
public
function
setTtlMinutes
(?
int
$ttlMinutes
): void
135
{
136
$this->ttlMinutes =
$ttlMinutes
;
137
}
138
}
Commercetools\Api\Models\Customer\CustomerCreateEmailTokenModel
Definition:
CustomerCreateEmailTokenModel.php:21
Commercetools\Api\Models\Customer\CustomerCreateEmailTokenModel\getVersion
getVersion()
Definition:
CustomerCreateEmailTokenModel.php:80
Commercetools\Api\Models\Customer\CustomerCreateEmailTokenModel\$ttlMinutes
$ttlMinutes
Definition:
CustomerCreateEmailTokenModel.php:38
Commercetools\Api\Models\Customer\CustomerCreateEmailTokenModel\$version
$version
Definition:
CustomerCreateEmailTokenModel.php:32
Commercetools\Api\Models\Customer\CustomerCreateEmailTokenModel\setVersion
setVersion(?int $version)
Definition:
CustomerCreateEmailTokenModel.php:126
Commercetools\Api\Models\Customer\CustomerCreateEmailTokenModel\__construct
__construct(?string $id=null, ?int $version=null, ?int $ttlMinutes=null)
Definition:
CustomerCreateEmailTokenModel.php:44
Commercetools\Api\Models\Customer\CustomerCreateEmailTokenModel\$id
$id
Definition:
CustomerCreateEmailTokenModel.php:26
Commercetools\Api\Models\Customer\CustomerCreateEmailTokenModel\setId
setId(?string $id)
Definition:
CustomerCreateEmailTokenModel.php:118
Commercetools\Api\Models\Customer\CustomerCreateEmailTokenModel\setTtlMinutes
setTtlMinutes(?int $ttlMinutes)
Definition:
CustomerCreateEmailTokenModel.php:134
Commercetools\Api\Models\Customer\CustomerCreateEmailTokenModel\getId
getId()
Definition:
CustomerCreateEmailTokenModel.php:60
Commercetools\Api\Models\Customer\CustomerCreateEmailTokenModel\getTtlMinutes
getTtlMinutes()
Definition:
CustomerCreateEmailTokenModel.php:100
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\CustomerCreateEmailToken
Definition:
CustomerCreateEmailToken.php:15
Commercetools\Base\JsonObject
Definition:
JsonObject.php:15
Commercetools\Api\Models\Customer
Definition:
Customer.php:9
Generated by
1.9.1