commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
ProjectChangeCartsConfigurationActionBuilder.php
1 <?php
2 
3 declare(strict_types=1);
10 
16 use stdClass;
17 
22 {
27  private $cartsConfiguration;
28 
35  public function getCartsConfiguration()
36  {
37  return $this->cartsConfiguration instanceof CartsConfigurationBuilder ? $this->cartsConfiguration->build() : $this->cartsConfiguration;
38  }
39 
44  public function withCartsConfiguration(?CartsConfiguration $cartsConfiguration)
45  {
46  $this->cartsConfiguration = $cartsConfiguration;
47 
48  return $this;
49  }
50 
55  public function withCartsConfigurationBuilder(?CartsConfigurationBuilder $cartsConfiguration)
56  {
57  $this->cartsConfiguration = $cartsConfiguration;
58 
59  return $this;
60  }
61 
63  {
65  $this->cartsConfiguration instanceof CartsConfigurationBuilder ? $this->cartsConfiguration->build() : $this->cartsConfiguration
66  );
67  }
68 
70  {
71  return new self();
72  }
73 }