commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
CartSetCustomerIdActionBuilder.php
1 <?php
2 
3 declare(strict_types=1);
10 
16 use stdClass;
17 
22 {
27  private $customerId;
28 
37  public function getCustomerId()
38  {
39  return $this->customerId;
40  }
41 
46  public function withCustomerId(?string $customerId)
47  {
48  $this->customerId = $customerId;
49 
50  return $this;
51  }
52 
53 
54  public function build(): CartSetCustomerIdAction
55  {
57  $this->customerId
58  );
59  }
60 
61  public static function of(): CartSetCustomerIdActionBuilder
62  {
63  return new self();
64  }
65 }