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