commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
CartRecalculateActionBuilder.php
1 <?php
2 
3 declare(strict_types=1);
10 
16 use stdClass;
17 
21 final class CartRecalculateActionBuilder implements Builder
22 {
27  private $updateProductData;
28 
38  public function getUpdateProductData()
39  {
40  return $this->updateProductData;
41  }
42 
47  public function withUpdateProductData(?bool $updateProductData)
48  {
49  $this->updateProductData = $updateProductData;
50 
51  return $this;
52  }
53 
54 
55  public function build(): CartRecalculateAction
56  {
57  return new CartRecalculateActionModel(
58  $this->updateProductData
59  );
60  }
61 
62  public static function of(): CartRecalculateActionBuilder
63  {
64  return new self();
65  }
66 }