commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
ProductVariantPatch.php
1 <?php
2 
3 declare(strict_types=1);
10 
15 
17 {
18  public const FIELD_PRODUCT_VARIANT = 'productVariant';
19  public const FIELD_ATTRIBUTES = 'attributes';
20  public const FIELD_STAGED = 'staged';
21  public const FIELD_PRODUCT = 'product';
22 
30  public function getProductVariant();
31 
44  public function getAttributes();
45 
52  public function getStaged();
53 
60  public function getProduct();
61 
65  public function setProductVariant(?ProductVariantKeyReference $productVariant): void;
66 
70  public function setAttributes(?Attributes $attributes): void;
71 
75  public function setStaged(?bool $staged): void;
76 
80  public function setProduct(?ProductKeyReference $product): void;
81 }
setProductVariant(?ProductVariantKeyReference $productVariant)