commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
Loading...
Searching...
No Matches
lib
commercetools-import
src
Models
Importcontainers
ImportContainerBuilder.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 DateTimeImmutable;
17
use stdClass;
18
22
final
class
ImportContainerBuilder
implements
Builder
23
{
28
private
$key;
29
34
private
$resourceType;
35
40
private
$version;
41
46
private
$createdAt;
47
52
private
$lastModifiedAt;
53
61
public
function
getKey
()
62
{
63
return
$this->key;
64
}
65
73
public
function
getResourceType
()
74
{
75
return
$this->resourceType;
76
}
77
84
public
function
getVersion
()
85
{
86
return
$this->version;
87
}
88
95
public
function
getCreatedAt
()
96
{
97
return
$this->createdAt;
98
}
99
106
public
function
getLastModifiedAt
()
107
{
108
return
$this->lastModifiedAt;
109
}
110
115
public
function
withKey
(?
string
$key)
116
{
117
$this->key = $key;
118
119
return
$this;
120
}
121
126
public
function
withResourceType
(?
string
$resourceType)
127
{
128
$this->resourceType = $resourceType;
129
130
return
$this;
131
}
132
137
public
function
withVersion
(?
int
$version)
138
{
139
$this->version = $version;
140
141
return
$this;
142
}
143
148
public
function
withCreatedAt
(?DateTimeImmutable $createdAt)
149
{
150
$this->createdAt = $createdAt;
151
152
return
$this;
153
}
154
159
public
function
withLastModifiedAt
(?DateTimeImmutable $lastModifiedAt)
160
{
161
$this->lastModifiedAt = $lastModifiedAt;
162
163
return
$this;
164
}
165
166
167
public
function
build
():
ImportContainer
168
{
169
return
new
ImportContainerModel
(
170
$this->key,
171
$this->resourceType,
172
$this->version,
173
$this->createdAt,
174
$this->lastModifiedAt
175
);
176
}
177
178
public
static
function
of
():
ImportContainerBuilder
179
{
180
return
new
self
();
181
}
182
}
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\ImportContainerBuilder
Definition
ImportContainerBuilder.php:23
Commercetools\Import\Models\Importcontainers\ImportContainerBuilder\withResourceType
withResourceType(?string $resourceType)
Definition
ImportContainerBuilder.php:126
Commercetools\Import\Models\Importcontainers\ImportContainerBuilder\withVersion
withVersion(?int $version)
Definition
ImportContainerBuilder.php:137
Commercetools\Import\Models\Importcontainers\ImportContainerBuilder\getKey
getKey()
Definition
ImportContainerBuilder.php:61
Commercetools\Import\Models\Importcontainers\ImportContainerBuilder\withCreatedAt
withCreatedAt(?DateTimeImmutable $createdAt)
Definition
ImportContainerBuilder.php:148
Commercetools\Import\Models\Importcontainers\ImportContainerBuilder\of
static of()
Definition
ImportContainerBuilder.php:178
Commercetools\Import\Models\Importcontainers\ImportContainerBuilder\getLastModifiedAt
getLastModifiedAt()
Definition
ImportContainerBuilder.php:106
Commercetools\Import\Models\Importcontainers\ImportContainerBuilder\getResourceType
getResourceType()
Definition
ImportContainerBuilder.php:73
Commercetools\Import\Models\Importcontainers\ImportContainerBuilder\getVersion
getVersion()
Definition
ImportContainerBuilder.php:84
Commercetools\Import\Models\Importcontainers\ImportContainerBuilder\withLastModifiedAt
withLastModifiedAt(?DateTimeImmutable $lastModifiedAt)
Definition
ImportContainerBuilder.php:159
Commercetools\Import\Models\Importcontainers\ImportContainerBuilder\getCreatedAt
getCreatedAt()
Definition
ImportContainerBuilder.php:95
Commercetools\Import\Models\Importcontainers\ImportContainerBuilder\build
build()
Definition
ImportContainerBuilder.php:167
Commercetools\Import\Models\Importcontainers\ImportContainerBuilder\withKey
withKey(?string $key)
Definition
ImportContainerBuilder.php:115
Commercetools\Import\Models\Importcontainers\ImportContainerModel
Definition
ImportContainerModel.php:22
Commercetools\Base\Builder
Definition
Builder.php:16
Commercetools\Base\JsonObject
Definition
JsonObject.php:15
Commercetools\Import\Models\Importcontainers\ImportContainer
Definition
ImportContainer.php:16
Commercetools\Import\Models\Importcontainers
Definition
ImportContainer.php:9
Generated by
1.9.8