commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
Loading...
Searching...
No Matches
MyCustomerSigninBuilder.php
1<?php
2
3declare(strict_types=1);
10
16use stdClass;
17
21final class MyCustomerSigninBuilder implements Builder
22{
27 private $email;
28
33 private $password;
34
39 private $activeCartSignInMode;
40
45 private $updateProductData;
46
53 public function getEmail()
54 {
55 return $this->email;
56 }
57
64 public function getPassword()
65 {
66 return $this->password;
67 }
68
78 public function getActiveCartSignInMode()
79 {
80 return $this->activeCartSignInMode;
81 }
82
89 public function getUpdateProductData()
90 {
91 return $this->updateProductData;
92 }
93
98 public function withEmail(?string $email)
99 {
100 $this->email = $email;
101
102 return $this;
103 }
104
109 public function withPassword(?string $password)
110 {
111 $this->password = $password;
112
113 return $this;
114 }
115
120 public function withActiveCartSignInMode(?string $activeCartSignInMode)
121 {
122 $this->activeCartSignInMode = $activeCartSignInMode;
123
124 return $this;
125 }
126
131 public function withUpdateProductData(?bool $updateProductData)
132 {
133 $this->updateProductData = $updateProductData;
134
135 return $this;
136 }
137
138
139 public function build(): MyCustomerSignin
140 {
141 return new MyCustomerSigninModel(
142 $this->email,
143 $this->password,
144 $this->activeCartSignInMode,
145 $this->updateProductData
146 );
147 }
148
149 public static function of(): MyCustomerSigninBuilder
150 {
151 return new self();
152 }
153}