commercetools-sdk-php-v2  master
The platform, import-api and ml-api PHP sdks generated from our api reference.
ProductVariantPatchRequestBuilder.php
1 <?php
2 
3 declare(strict_types=1);
10 
17 use stdClass;
18 
23 {
28  private $patches;
29 
36  public function getPatches()
37  {
38  return $this->patches;
39  }
40 
45  public function withPatches(?ProductVariantPatchCollection $patches)
46  {
47  $this->patches = $patches;
48 
49  return $this;
50  }
51 
52 
53  public function build(): ProductVariantPatchRequest
54  {
56  $this->patches
57  );
58  }
59 
60  public static function of(): ProductVariantPatchRequestBuilder
61  {
62  return new self();
63  }
64 }