commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
lib
commercetools-api
src
Models
Product
ProductVariantDraft.php
1
<?php
2
3
declare(strict_types=1);
9
namespace
Commercetools\Api\Models\Product
;
10
11
use
Commercetools\Api\Models\Common\AssetDraftCollection
;
12
use
Commercetools\Api\Models\Common\ImageCollection
;
13
use
Commercetools\Api\Models\Common\PriceDraftCollection
;
14
use
Commercetools\Base\DateTimeImmutableCollection
;
15
use
Commercetools\Base\JsonObject
;
16
17
interface
ProductVariantDraft
extends
JsonObject
18
{
19
public
const
FIELD_SKU
=
'sku'
;
20
public
const
FIELD_KEY
=
'key'
;
21
public
const
FIELD_PRICES
=
'prices'
;
22
public
const
FIELD_ATTRIBUTES
=
'attributes'
;
23
public
const
FIELD_IMAGES
=
'images'
;
24
public
const
FIELD_ASSETS
=
'assets'
;
25
32
public
function
getSku
();
33
40
public
function
getKey
();
41
49
public
function
getPrices
();
50
57
public
function
getAttributes
();
58
65
public
function
getImages
();
66
73
public
function
getAssets
();
74
78
public
function
setSku
(?
string
$sku): void;
79
83
public
function
setKey
(?
string
$key): void;
84
88
public
function
setPrices
(?
PriceDraftCollection
$prices): void;
89
93
public
function
setAttributes
(?
AttributeCollection
$attributes): void;
94
98
public
function
setImages
(?
ImageCollection
$images): void;
99
103
public
function
setAssets
(?
AssetDraftCollection
$assets): void;
104
}
Commercetools\Api\Models\Common\AssetDraftCollection
Definition:
AssetDraftCollection.php:22
Commercetools\Api\Models\Common\ImageCollection
Definition:
ImageCollection.php:22
Commercetools\Api\Models\Common\PriceDraftCollection
Definition:
PriceDraftCollection.php:22
Commercetools\Api\Models\Product\AttributeCollection
Definition:
AttributeCollection.php:22
Commercetools\Base\DateTimeImmutableCollection
Definition:
DateTimeImmutableCollection.php:21
Commercetools\Api\Models\Product\ProductVariantDraft
Definition:
ProductVariantDraft.php:18
Commercetools\Api\Models\Product\ProductVariantDraft\getSku
getSku()
Commercetools\Api\Models\Product\ProductVariantDraft\setAssets
setAssets(?AssetDraftCollection $assets)
Commercetools\Api\Models\Product\ProductVariantDraft\getPrices
getPrices()
Commercetools\Api\Models\Product\ProductVariantDraft\setKey
setKey(?string $key)
Commercetools\Api\Models\Product\ProductVariantDraft\getImages
getImages()
Commercetools\Api\Models\Product\ProductVariantDraft\FIELD_ATTRIBUTES
const FIELD_ATTRIBUTES
Definition:
ProductVariantDraft.php:22
Commercetools\Api\Models\Product\ProductVariantDraft\FIELD_PRICES
const FIELD_PRICES
Definition:
ProductVariantDraft.php:21
Commercetools\Api\Models\Product\ProductVariantDraft\getKey
getKey()
Commercetools\Api\Models\Product\ProductVariantDraft\setSku
setSku(?string $sku)
Commercetools\Api\Models\Product\ProductVariantDraft\FIELD_KEY
const FIELD_KEY
Definition:
ProductVariantDraft.php:20
Commercetools\Api\Models\Product\ProductVariantDraft\FIELD_SKU
const FIELD_SKU
Definition:
ProductVariantDraft.php:19
Commercetools\Api\Models\Product\ProductVariantDraft\setImages
setImages(?ImageCollection $images)
Commercetools\Api\Models\Product\ProductVariantDraft\FIELD_ASSETS
const FIELD_ASSETS
Definition:
ProductVariantDraft.php:24
Commercetools\Api\Models\Product\ProductVariantDraft\getAssets
getAssets()
Commercetools\Api\Models\Product\ProductVariantDraft\getAttributes
getAttributes()
Commercetools\Api\Models\Product\ProductVariantDraft\setPrices
setPrices(?PriceDraftCollection $prices)
Commercetools\Api\Models\Product\ProductVariantDraft\setAttributes
setAttributes(?AttributeCollection $attributes)
Commercetools\Api\Models\Product\ProductVariantDraft\FIELD_IMAGES
const FIELD_IMAGES
Definition:
ProductVariantDraft.php:23
Commercetools\Base\JsonObject
Definition:
JsonObject.php:15
Commercetools\Api\Models\Product
Definition:
AttributeAccessor.php:4
Generated by
1.9.1