commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
lib
commercetools-import
src
Models
Importrequests
OrderImportRequestBuilder.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\Orders\OrderImportCollection
;
17
use stdClass;
18
22
final
class
OrderImportRequestBuilder
implements
Builder
23
{
28
private
$resources;
29
36
public
function
getResources
()
37
{
38
return
$this->resources;
39
}
40
45
public
function
withResources
(?
OrderImportCollection
$resources)
46
{
47
$this->resources = $resources;
48
49
return
$this;
50
}
51
52
53
public
function
build
():
OrderImportRequest
54
{
55
return
new
OrderImportRequestModel
(
56
$this->resources
57
);
58
}
59
60
public
static
function
of
():
OrderImportRequestBuilder
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\OrderImportRequestBuilder
Definition:
OrderImportRequestBuilder.php:23
Commercetools\Import\Models\Importrequests\OrderImportRequestBuilder\withResources
withResources(?OrderImportCollection $resources)
Definition:
OrderImportRequestBuilder.php:45
Commercetools\Import\Models\Importrequests\OrderImportRequestBuilder\getResources
getResources()
Definition:
OrderImportRequestBuilder.php:36
Commercetools\Import\Models\Importrequests\OrderImportRequestBuilder\of
static of()
Definition:
OrderImportRequestBuilder.php:60
Commercetools\Import\Models\Importrequests\OrderImportRequestBuilder\build
build()
Definition:
OrderImportRequestBuilder.php:53
Commercetools\Import\Models\Importrequests\OrderImportRequestModel
Definition:
OrderImportRequestModel.php:22
Commercetools\Import\Models\Orders\OrderImportCollection
Definition:
OrderImportCollection.php:22
Commercetools\Base\Builder
Definition:
Builder.php:16
Commercetools\Base\JsonObject
Definition:
JsonObject.php:15
Commercetools\Import\Models\Importrequests\OrderImportRequest
Definition:
OrderImportRequest.php:16
Commercetools\Import\Models\Importrequests
Definition:
CategoryImportRequest.php:9
Generated by
1.9.1