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