commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
lib
commercetools-api
src
Models
Product
ProductVariant.php
1
<?php
2
3
declare(strict_types=1);
9
namespace
Commercetools\Api\Models\Product
;
10
11
use
Commercetools\Api\Models\Common\AssetCollection
;
12
use
Commercetools\Api\Models\Common\ImageCollection
;
13
use
Commercetools\Api\Models\Common\Price
;
14
use
Commercetools\Api\Models\Common\PriceCollection
;
15
use
Commercetools\Api\Models\Common\ScopedPrice
;
16
use
Commercetools\Base\DateTimeImmutableCollection
;
17
use
Commercetools\Base\JsonObject
;
18
19
interface
ProductVariant
extends
JsonObject
20
{
21
public
const
FIELD_ID
=
'id'
;
22
public
const
FIELD_SKU
=
'sku'
;
23
public
const
FIELD_KEY
=
'key'
;
24
public
const
FIELD_PRICES
=
'prices'
;
25
public
const
FIELD_ATTRIBUTES
=
'attributes'
;
26
public
const
FIELD_PRICE
=
'price'
;
27
public
const
FIELD_IMAGES
=
'images'
;
28
public
const
FIELD_ASSETS
=
'assets'
;
29
public
const
FIELD_AVAILABILITY
=
'availability'
;
30
public
const
FIELD_IS_MATCHING_VARIANT
=
'isMatchingVariant'
;
31
public
const
FIELD_SCOPED_PRICE
=
'scopedPrice'
;
32
public
const
FIELD_SCOPED_PRICE_DISCOUNTED
=
'scopedPriceDiscounted'
;
33
40
public
function
getId
();
41
48
public
function
getSku
();
49
57
public
function
getKey
();
58
66
public
function
getPrices
();
67
74
public
function
getAttributes
();
75
83
public
function
getPrice
();
84
91
public
function
getImages
();
92
99
public
function
getAssets
();
100
109
public
function
getAvailability
();
110
118
public
function
getIsMatchingVariant
();
119
128
public
function
getScopedPrice
();
129
137
public
function
getScopedPriceDiscounted
();
138
142
public
function
setId
(?
int
$id): void;
143
147
public
function
setSku
(?
string
$sku): void;
148
152
public
function
setKey
(?
string
$key): void;
153
157
public
function
setPrices
(?
PriceCollection
$prices): void;
158
162
public
function
setAttributes
(?
AttributeCollection
$attributes): void;
163
167
public
function
setPrice
(?
Price
$price): void;
168
172
public
function
setImages
(?
ImageCollection
$images): void;
173
177
public
function
setAssets
(?
AssetCollection
$assets): void;
178
182
public
function
setAvailability
(?
ProductVariantAvailability
$availability): void;
183
187
public
function
setIsMatchingVariant
(?
bool
$isMatchingVariant): void;
188
192
public
function
setScopedPrice
(?
ScopedPrice
$scopedPrice): void;
193
197
public
function
setScopedPriceDiscounted
(?
bool
$scopedPriceDiscounted): void;
198
}
Commercetools\Api\Models\Common\AssetCollection
Definition:
AssetCollection.php:22
Commercetools\Api\Models\Common\ImageCollection
Definition:
ImageCollection.php:22
Commercetools\Api\Models\Common\PriceCollection
Definition:
PriceCollection.php:22
Commercetools\Api\Models\Product\AttributeCollection
Definition:
AttributeCollection.php:22
Commercetools\Base\DateTimeImmutableCollection
Definition:
DateTimeImmutableCollection.php:21
Commercetools\Api\Models\Common\Price
Definition:
Price.php:19
Commercetools\Api\Models\Common\ScopedPrice
Definition:
ScopedPrice.php:19
Commercetools\Api\Models\Product\ProductVariantAvailability
Definition:
ProductVariantAvailability.php:15
Commercetools\Api\Models\Product\ProductVariant
Definition:
ProductVariant.php:20
Commercetools\Api\Models\Product\ProductVariant\setScopedPriceDiscounted
setScopedPriceDiscounted(?bool $scopedPriceDiscounted)
Commercetools\Api\Models\Product\ProductVariant\FIELD_IS_MATCHING_VARIANT
const FIELD_IS_MATCHING_VARIANT
Definition:
ProductVariant.php:30
Commercetools\Api\Models\Product\ProductVariant\getScopedPrice
getScopedPrice()
Commercetools\Api\Models\Product\ProductVariant\FIELD_AVAILABILITY
const FIELD_AVAILABILITY
Definition:
ProductVariant.php:29
Commercetools\Api\Models\Product\ProductVariant\getAssets
getAssets()
Commercetools\Api\Models\Product\ProductVariant\getImages
getImages()
Commercetools\Api\Models\Product\ProductVariant\getSku
getSku()
Commercetools\Api\Models\Product\ProductVariant\FIELD_PRICE
const FIELD_PRICE
Definition:
ProductVariant.php:26
Commercetools\Api\Models\Product\ProductVariant\getScopedPriceDiscounted
getScopedPriceDiscounted()
Commercetools\Api\Models\Product\ProductVariant\getPrices
getPrices()
Commercetools\Api\Models\Product\ProductVariant\getKey
getKey()
Commercetools\Api\Models\Product\ProductVariant\setAssets
setAssets(?AssetCollection $assets)
Commercetools\Api\Models\Product\ProductVariant\FIELD_IMAGES
const FIELD_IMAGES
Definition:
ProductVariant.php:27
Commercetools\Api\Models\Product\ProductVariant\FIELD_SKU
const FIELD_SKU
Definition:
ProductVariant.php:22
Commercetools\Api\Models\Product\ProductVariant\getIsMatchingVariant
getIsMatchingVariant()
Commercetools\Api\Models\Product\ProductVariant\getAvailability
getAvailability()
Commercetools\Api\Models\Product\ProductVariant\setScopedPrice
setScopedPrice(?ScopedPrice $scopedPrice)
Commercetools\Api\Models\Product\ProductVariant\FIELD_ASSETS
const FIELD_ASSETS
Definition:
ProductVariant.php:28
Commercetools\Api\Models\Product\ProductVariant\FIELD_ID
const FIELD_ID
Definition:
ProductVariant.php:21
Commercetools\Api\Models\Product\ProductVariant\getId
getId()
Commercetools\Api\Models\Product\ProductVariant\setId
setId(?int $id)
Commercetools\Api\Models\Product\ProductVariant\setPrice
setPrice(?Price $price)
Commercetools\Api\Models\Product\ProductVariant\setAttributes
setAttributes(?AttributeCollection $attributes)
Commercetools\Api\Models\Product\ProductVariant\FIELD_KEY
const FIELD_KEY
Definition:
ProductVariant.php:23
Commercetools\Api\Models\Product\ProductVariant\setPrices
setPrices(?PriceCollection $prices)
Commercetools\Api\Models\Product\ProductVariant\getAttributes
getAttributes()
Commercetools\Api\Models\Product\ProductVariant\setKey
setKey(?string $key)
Commercetools\Api\Models\Product\ProductVariant\setAvailability
setAvailability(?ProductVariantAvailability $availability)
Commercetools\Api\Models\Product\ProductVariant\getPrice
getPrice()
Commercetools\Api\Models\Product\ProductVariant\FIELD_SCOPED_PRICE_DISCOUNTED
const FIELD_SCOPED_PRICE_DISCOUNTED
Definition:
ProductVariant.php:32
Commercetools\Api\Models\Product\ProductVariant\setSku
setSku(?string $sku)
Commercetools\Api\Models\Product\ProductVariant\setImages
setImages(?ImageCollection $images)
Commercetools\Api\Models\Product\ProductVariant\FIELD_SCOPED_PRICE
const FIELD_SCOPED_PRICE
Definition:
ProductVariant.php:31
Commercetools\Api\Models\Product\ProductVariant\FIELD_PRICES
const FIELD_PRICES
Definition:
ProductVariant.php:24
Commercetools\Api\Models\Product\ProductVariant\FIELD_ATTRIBUTES
const FIELD_ATTRIBUTES
Definition:
ProductVariant.php:25
Commercetools\Api\Models\Product\ProductVariant\setIsMatchingVariant
setIsMatchingVariant(?bool $isMatchingVariant)
Commercetools\Base\JsonObject
Definition:
JsonObject.php:15
Commercetools\Api\Models\Product
Definition:
AttributeAccessor.php:4
Generated by
1.9.1