commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
lib
commercetools-api
src
Models
Customer
CustomerPasswordTokenReferenceBuilder.php
1
<?php
2
3
declare(strict_types=1);
9
namespace
Commercetools\Api\Models\Customer
;
10
11
use
Commercetools\Api\Models\Common\Reference
;
12
use
Commercetools\Api\Models\Common\ReferenceBuilder
;
13
use
Commercetools\Base\Builder
;
14
use
Commercetools\Base\DateTimeImmutableCollection
;
15
use
Commercetools\Base\JsonObject
;
16
use
Commercetools\Base\JsonObjectModel
;
17
use
Commercetools\Base\MapperFactory
;
18
use stdClass;
19
23
final
class
CustomerPasswordTokenReferenceBuilder
implements
Builder
24
{
29
private
$id;
30
37
public
function
getId
()
38
{
39
return
$this->id;
40
}
41
46
public
function
withId
(?
string
$id)
47
{
48
$this->
id
= $id;
49
50
return
$this;
51
}
52
53
54
public
function
build
():
CustomerPasswordTokenReference
55
{
56
return
new
CustomerPasswordTokenReferenceModel
(
57
$this->
id
58
);
59
}
60
61
public
static
function
of
():
CustomerPasswordTokenReferenceBuilder
62
{
63
return
new
self
();
64
}
65
}
Commercetools\Api\Models\Common\ReferenceBuilder
Definition:
ReferenceBuilder.php:92
Commercetools\Api\Models\Customer\CustomerPasswordTokenReferenceBuilder
Definition:
CustomerPasswordTokenReferenceBuilder.php:24
Commercetools\Api\Models\Customer\CustomerPasswordTokenReferenceBuilder\getId
getId()
Definition:
CustomerPasswordTokenReferenceBuilder.php:37
Commercetools\Api\Models\Customer\CustomerPasswordTokenReferenceBuilder\build
build()
Definition:
CustomerPasswordTokenReferenceBuilder.php:54
Commercetools\Api\Models\Customer\CustomerPasswordTokenReferenceBuilder\of
static of()
Definition:
CustomerPasswordTokenReferenceBuilder.php:61
Commercetools\Api\Models\Customer\CustomerPasswordTokenReferenceBuilder\withId
withId(?string $id)
Definition:
CustomerPasswordTokenReferenceBuilder.php:46
Commercetools\Api\Models\Customer\CustomerPasswordTokenReferenceModel
Definition:
CustomerPasswordTokenReferenceModel.php:23
Commercetools\Base\DateTimeImmutableCollection
Definition:
DateTimeImmutableCollection.php:21
Commercetools\Base\JsonObjectModel
Definition:
JsonObjectModel.php:15
Commercetools\Base\MapperFactory
Definition:
MapperFactory.php:16
Commercetools\Api\Models\Common\Reference
Definition:
Reference.php:50
Commercetools\Api\Models\Customer\CustomerPasswordTokenReference
Definition:
CustomerPasswordTokenReference.php:16
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