commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
Loading...
Searching...
No Matches
ProductVariant.php
1<?php
2
3declare(strict_types=1);
10
18
19interface 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}
setScopedPriceDiscounted(?bool $scopedPriceDiscounted)
setAttributes(?AttributeCollection $attributes)
setAvailability(?ProductVariantAvailability $availability)
setIsMatchingVariant(?bool $isMatchingVariant)