commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
lib
commercetools-import
src
Models
Common
ImportResourceBuilder.php
1
<?php
2
3
declare(strict_types=1);
9
namespace
Commercetools\Import\Models\Common
;
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\Categories\CategoryImport
;
17
use
Commercetools\Import\Models\Categories\CategoryImportBuilder
;
18
use
Commercetools\Import\Models\Customers\CustomerImport
;
19
use
Commercetools\Import\Models\Customers\CustomerImportBuilder
;
20
use
Commercetools\Import\Models\DiscountCodes\DiscountCodeImport
;
21
use
Commercetools\Import\Models\DiscountCodes\DiscountCodeImportBuilder
;
22
use
Commercetools\Import\Models\Inventories\InventoryImport
;
23
use
Commercetools\Import\Models\Inventories\InventoryImportBuilder
;
24
use
Commercetools\Import\Models\Prices\PriceImport
;
25
use
Commercetools\Import\Models\Prices\PriceImportBuilder
;
26
use
Commercetools\Import\Models\Productdrafts\ProductDraftImport
;
27
use
Commercetools\Import\Models\Productdrafts\ProductDraftImportBuilder
;
28
use
Commercetools\Import\Models\Products\ProductImport
;
29
use
Commercetools\Import\Models\Products\ProductImportBuilder
;
30
use
Commercetools\Import\Models\Producttypes\ProductTypeImport
;
31
use
Commercetools\Import\Models\Producttypes\ProductTypeImportBuilder
;
32
use
Commercetools\Import\Models\Productvariants\ProductVariantImport
;
33
use
Commercetools\Import\Models\Productvariants\ProductVariantImportBuilder
;
34
use
Commercetools\Import\Models\StandalonePrices\StandalonePriceImport
;
35
use
Commercetools\Import\Models\StandalonePrices\StandalonePriceImportBuilder
;
36
use
Commercetools\Import\Models\Types\TypeImport
;
37
use
Commercetools\Import\Models\Types\TypeImportBuilder
;
38
use stdClass;
39
43
final
class
ImportResourceBuilder
implements
Builder
44
{
49
private
$key;
50
57
public
function
getKey
()
58
{
59
return
$this->key;
60
}
61
66
public
function
withKey
(?
string
$key)
67
{
68
$this->key = $key;
69
70
return
$this;
71
}
72
73
74
public
function
build
():
ImportResource
75
{
76
return
new
ImportResourceModel
(
77
$this->key
78
);
79
}
80
81
public
static
function
of
():
ImportResourceBuilder
82
{
83
return
new
self
();
84
}
85
}
Commercetools\Base\DateTimeImmutableCollection
Definition:
DateTimeImmutableCollection.php:21
Commercetools\Base\JsonObjectModel
Definition:
JsonObjectModel.php:15
Commercetools\Base\MapperFactory
Definition:
MapperFactory.php:16
Commercetools\Import\Models\Categories\CategoryImportBuilder
Definition:
CategoryImportBuilder.php:31
Commercetools\Import\Models\Common\ImportResourceBuilder
Definition:
ImportResourceBuilder.php:44
Commercetools\Import\Models\Common\ImportResourceBuilder\withKey
withKey(?string $key)
Definition:
ImportResourceBuilder.php:66
Commercetools\Import\Models\Common\ImportResourceBuilder\build
build()
Definition:
ImportResourceBuilder.php:74
Commercetools\Import\Models\Common\ImportResourceBuilder\of
static of()
Definition:
ImportResourceBuilder.php:81
Commercetools\Import\Models\Common\ImportResourceBuilder\getKey
getKey()
Definition:
ImportResourceBuilder.php:57
Commercetools\Import\Models\Common\ImportResourceModel
Definition:
ImportResourceModel.php:43
Commercetools\Import\Models\Customers\CustomerImportBuilder
Definition:
CustomerImportBuilder.php:30
Commercetools\Import\Models\DiscountCodes\DiscountCodeImportBuilder
Definition:
DiscountCodeImportBuilder.php:30
Commercetools\Import\Models\Inventories\InventoryImportBuilder
Definition:
InventoryImportBuilder.php:29
Commercetools\Import\Models\Prices\PriceImportBuilder
Definition:
PriceImportBuilder.php:40
Commercetools\Import\Models\Productdrafts\ProductDraftImportBuilder
Definition:
ProductDraftImportBuilder.php:35
Commercetools\Import\Models\Products\ProductImportBuilder
Definition:
ProductImportBuilder.php:33
Commercetools\Import\Models\Producttypes\ProductTypeImportBuilder
Definition:
ProductTypeImportBuilder.php:24
Commercetools\Import\Models\Productvariants\ProductVariantImportBuilder
Definition:
ProductVariantImportBuilder.php:28
Commercetools\Import\Models\StandalonePrices\StandalonePriceImportBuilder
Definition:
StandalonePriceImportBuilder.php:36
Commercetools\Import\Models\Types\TypeImportBuilder
Definition:
TypeImportBuilder.php:26
Commercetools\Base\Builder
Definition:
Builder.php:16
Commercetools\Base\JsonObject
Definition:
JsonObject.php:15
Commercetools\Import\Models\Categories\CategoryImport
Definition:
CategoryImport.php:20
Commercetools\Import\Models\Common\ImportResource
Definition:
ImportResource.php:26
Commercetools\Import\Models\Customers\CustomerImport
Definition:
CustomerImport.php:20
Commercetools\Import\Models\DiscountCodes\DiscountCodeImport
Definition:
DiscountCodeImport.php:20
Commercetools\Import\Models\Inventories\InventoryImport
Definition:
InventoryImport.php:19
Commercetools\Import\Models\Prices\PriceImport
Definition:
PriceImport.php:25
Commercetools\Import\Models\Productdrafts\ProductDraftImport
Definition:
ProductDraftImport.php:22
Commercetools\Import\Models\Products\ProductImport
Definition:
ProductImport.php:21
Commercetools\Import\Models\Producttypes\ProductTypeImport
Definition:
ProductTypeImport.php:16
Commercetools\Import\Models\Productvariants\ProductVariantImport
Definition:
ProductVariantImport.php:19
Commercetools\Import\Models\StandalonePrices\StandalonePriceImport
Definition:
StandalonePriceImport.php:23
Commercetools\Import\Models\Types\TypeImport
Definition:
TypeImport.php:17
Commercetools\Import\Models\Common
Definition:
Address.php:9
Generated by
1.9.1