commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
lib
commercetools-import
src
Models
Importcontainers
ImportContainerUpdateDraftBuilder.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
ImportContainerUpdateDraftBuilder
implements
Builder
22
{
27
private
$version;
28
33
private
$resourceType;
34
41
public
function
getVersion
()
42
{
43
return
$this->version;
44
}
45
53
public
function
getResourceType
()
54
{
55
return
$this->resourceType;
56
}
57
62
public
function
withVersion
(?
int
$version)
63
{
64
$this->version = $version;
65
66
return
$this;
67
}
68
73
public
function
withResourceType
(?
string
$resourceType)
74
{
75
$this->resourceType = $resourceType;
76
77
return
$this;
78
}
79
80
81
public
function
build
():
ImportContainerUpdateDraft
82
{
83
return
new
ImportContainerUpdateDraftModel
(
84
$this->version,
85
$this->resourceType
86
);
87
}
88
89
public
static
function
of
():
ImportContainerUpdateDraftBuilder
90
{
91
return
new
self
();
92
}
93
}
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\ImportContainerUpdateDraftBuilder
Definition:
ImportContainerUpdateDraftBuilder.php:22
Commercetools\Import\Models\Importcontainers\ImportContainerUpdateDraftBuilder\of
static of()
Definition:
ImportContainerUpdateDraftBuilder.php:89
Commercetools\Import\Models\Importcontainers\ImportContainerUpdateDraftBuilder\withResourceType
withResourceType(?string $resourceType)
Definition:
ImportContainerUpdateDraftBuilder.php:73
Commercetools\Import\Models\Importcontainers\ImportContainerUpdateDraftBuilder\build
build()
Definition:
ImportContainerUpdateDraftBuilder.php:81
Commercetools\Import\Models\Importcontainers\ImportContainerUpdateDraftBuilder\withVersion
withVersion(?int $version)
Definition:
ImportContainerUpdateDraftBuilder.php:62
Commercetools\Import\Models\Importcontainers\ImportContainerUpdateDraftBuilder\getResourceType
getResourceType()
Definition:
ImportContainerUpdateDraftBuilder.php:53
Commercetools\Import\Models\Importcontainers\ImportContainerUpdateDraftBuilder\getVersion
getVersion()
Definition:
ImportContainerUpdateDraftBuilder.php:41
Commercetools\Import\Models\Importcontainers\ImportContainerUpdateDraftModel
Definition:
ImportContainerUpdateDraftModel.php:21
Commercetools\Base\Builder
Definition:
Builder.php:16
Commercetools\Base\JsonObject
Definition:
JsonObject.php:15
Commercetools\Import\Models\Importcontainers\ImportContainerUpdateDraft
Definition:
ImportContainerUpdateDraft.php:15
Commercetools\Import\Models\Importcontainers
Definition:
ImportContainer.php:9
Generated by
1.9.1