commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
ProductVariantDraft.php
1 <?php
2 
3 declare(strict_types=1);
10 
16 
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 }
setAttributes(?AttributeCollection $attributes)