commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
All Classes Namespaces Functions Variables Pages
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
92 public function getUpdateProductData()
93 {
94 return $this->updateProductData;
95 }
96
101 public function withEmail(?string $email)
102 {
103 $this->email = $email;
104
105 return $this;
106 }
107
112 public function withPassword(?string $password)
113 {
114 $this->password = $password;
115
116 return $this;
117 }
118
123 public function withActiveCartSignInMode(?string $activeCartSignInMode)
124 {
125 $this->activeCartSignInMode = $activeCartSignInMode;
126
127 return $this;
128 }
129
134 public function withUpdateProductData(?bool $updateProductData)
135 {
136 $this->updateProductData = $updateProductData;
137
138 return $this;
139 }
140
141
142 public function build(): MyCustomerSignin
143 {
144 return new MyCustomerSigninModel(
145 $this->email,
146 $this->password,
147 $this->activeCartSignInMode,
148 $this->updateProductData
149 );
150 }
151
152 public static function of(): MyCustomerSigninBuilder
153 {
154 return new self();
155 }
156}