commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
lib
commercetools-import
src
Models
Importrequests
InventoryImportRequestBuilder.php
1
<?php
2
3
declare(strict_types=1);
9
namespace
Commercetools\Import\Models\Importrequests
;
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
Commercetools\Import\Models\Inventories\InventoryImportCollection
;
17
use stdClass;
18
22
final
class
InventoryImportRequestBuilder
implements
Builder
23
{
28
private
$resources;
29
36
public
function
getResources
()
37
{
38
return
$this->resources;
39
}
40
45
public
function
withResources
(?
InventoryImportCollection
$resources)
46
{
47
$this->resources = $resources;
48
49
return
$this;
50
}
51
52
53
public
function
build
():
InventoryImportRequest
54
{
55
return
new
InventoryImportRequestModel
(
56
$this->resources
57
);
58
}
59
60
public
static
function
of
():
InventoryImportRequestBuilder
61
{
62
return
new
self
();
63
}
64
}
Commercetools\Base\DateTimeImmutableCollection
Definition:
DateTimeImmutableCollection.php:21
Commercetools\Base\JsonObjectModel
Definition:
JsonObjectModel.php:15
Commercetools\Base\MapperFactory
Definition:
MapperFactory.php:16
Commercetools\Import\Models\Importrequests\InventoryImportRequestBuilder
Definition:
InventoryImportRequestBuilder.php:23
Commercetools\Import\Models\Importrequests\InventoryImportRequestBuilder\getResources
getResources()
Definition:
InventoryImportRequestBuilder.php:36
Commercetools\Import\Models\Importrequests\InventoryImportRequestBuilder\withResources
withResources(?InventoryImportCollection $resources)
Definition:
InventoryImportRequestBuilder.php:45
Commercetools\Import\Models\Importrequests\InventoryImportRequestBuilder\build
build()
Definition:
InventoryImportRequestBuilder.php:53
Commercetools\Import\Models\Importrequests\InventoryImportRequestBuilder\of
static of()
Definition:
InventoryImportRequestBuilder.php:60
Commercetools\Import\Models\Importrequests\InventoryImportRequestModel
Definition:
InventoryImportRequestModel.php:22
Commercetools\Import\Models\Inventories\InventoryImportCollection
Definition:
InventoryImportCollection.php:22
Commercetools\Base\Builder
Definition:
Builder.php:16
Commercetools\Base\JsonObject
Definition:
JsonObject.php:15
Commercetools\Import\Models\Importrequests\InventoryImportRequest
Definition:
InventoryImportRequest.php:16
Commercetools\Import\Models\Importrequests
Definition:
CategoryImportRequest.php:9
Generated by
1.9.1