commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
ProductAddVariantAction.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_IMAGES = 'images';
23  public const FIELD_ATTRIBUTES = 'attributes';
24  public const FIELD_STAGED = 'staged';
25  public const FIELD_ASSETS = 'assets';
26 
33  public function getSku();
34 
41  public function getKey();
42 
49  public function getPrices();
50 
57  public function getImages();
58 
65  public function getAttributes();
66 
73  public function getStaged();
74 
81  public function getAssets();
82 
86  public function setSku(?string $sku): void;
87 
91  public function setKey(?string $key): void;
92 
96  public function setPrices(?PriceDraftCollection $prices): void;
97 
101  public function setImages(?ImageCollection $images): void;
102 
106  public function setAttributes(?AttributeCollection $attributes): void;
107 
111  public function setStaged(?bool $staged): void;
112 
116  public function setAssets(?AssetDraftCollection $assets): void;
117 }
setAttributes(?AttributeCollection $attributes)