commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
lib
commercetools-import
src
Models
Importcontainers
ImportContainerDraftBuilder.php
1
<?php
2
3
declare(strict_types=1);
9
namespace
Commercetools\Import\Models\Importcontainers
;
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
ImportContainerDraftBuilder
implements
Builder
22
{
27
private
$key;
28
33
private
$resourceType;
34
42
public
function
getKey
()
43
{
44
return
$this->key;
45
}
46
54
public
function
getResourceType
()
55
{
56
return
$this->resourceType;
57
}
58
63
public
function
withKey
(?
string
$key)
64
{
65
$this->key = $key;
66
67
return
$this;
68
}
69
74
public
function
withResourceType
(?
string
$resourceType)
75
{
76
$this->resourceType = $resourceType;
77
78
return
$this;
79
}
80
81
82
public
function
build
():
ImportContainerDraft
83
{
84
return
new
ImportContainerDraftModel
(
85
$this->key,
86
$this->resourceType
87
);
88
}
89
90
public
static
function
of
():
ImportContainerDraftBuilder
91
{
92
return
new
self
();
93
}
94
}
Commercetools\Base\DateTimeImmutableCollection
Definition:
DateTimeImmutableCollection.php:21
Commercetools\Base\JsonObjectModel
Definition:
JsonObjectModel.php:15
Commercetools\Base\MapperFactory
Definition:
MapperFactory.php:16
Commercetools\Import\Models\Importcontainers\ImportContainerDraftBuilder
Definition:
ImportContainerDraftBuilder.php:22
Commercetools\Import\Models\Importcontainers\ImportContainerDraftBuilder\withKey
withKey(?string $key)
Definition:
ImportContainerDraftBuilder.php:63
Commercetools\Import\Models\Importcontainers\ImportContainerDraftBuilder\of
static of()
Definition:
ImportContainerDraftBuilder.php:90
Commercetools\Import\Models\Importcontainers\ImportContainerDraftBuilder\withResourceType
withResourceType(?string $resourceType)
Definition:
ImportContainerDraftBuilder.php:74
Commercetools\Import\Models\Importcontainers\ImportContainerDraftBuilder\getKey
getKey()
Definition:
ImportContainerDraftBuilder.php:42
Commercetools\Import\Models\Importcontainers\ImportContainerDraftBuilder\getResourceType
getResourceType()
Definition:
ImportContainerDraftBuilder.php:54
Commercetools\Import\Models\Importcontainers\ImportContainerDraftBuilder\build
build()
Definition:
ImportContainerDraftBuilder.php:82
Commercetools\Import\Models\Importcontainers\ImportContainerDraftModel
Definition:
ImportContainerDraftModel.php:21
Commercetools\Base\Builder
Definition:
Builder.php:16
Commercetools\Base\JsonObject
Definition:
JsonObject.php:15
Commercetools\Import\Models\Importcontainers\ImportContainerDraft
Definition:
ImportContainerDraft.php:15
Commercetools\Import\Models\Importcontainers
Definition:
ImportContainer.php:9
Generated by
1.9.1