commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
lib
commercetools-api
src
Models
Customer
CustomerEmailTokenReferenceBuilder.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
CustomerEmailTokenReferenceBuilder
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
():
CustomerEmailTokenReference
55
{
56
return
new
CustomerEmailTokenReferenceModel
(
57
$this->
id
58
);
59
}
60
61
public
static
function
of
():
CustomerEmailTokenReferenceBuilder
62
{
63
return
new
self
();
64
}
65
}
Commercetools\Api\Models\Common\ReferenceBuilder
Definition:
ReferenceBuilder.php:92
Commercetools\Api\Models\Customer\CustomerEmailTokenReferenceBuilder
Definition:
CustomerEmailTokenReferenceBuilder.php:24
Commercetools\Api\Models\Customer\CustomerEmailTokenReferenceBuilder\withId
withId(?string $id)
Definition:
CustomerEmailTokenReferenceBuilder.php:46
Commercetools\Api\Models\Customer\CustomerEmailTokenReferenceBuilder\build
build()
Definition:
CustomerEmailTokenReferenceBuilder.php:54
Commercetools\Api\Models\Customer\CustomerEmailTokenReferenceBuilder\getId
getId()
Definition:
CustomerEmailTokenReferenceBuilder.php:37
Commercetools\Api\Models\Customer\CustomerEmailTokenReferenceBuilder\of
static of()
Definition:
CustomerEmailTokenReferenceBuilder.php:61
Commercetools\Api\Models\Customer\CustomerEmailTokenReferenceModel
Definition:
CustomerEmailTokenReferenceModel.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\CustomerEmailTokenReference
Definition:
CustomerEmailTokenReference.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