commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
MyCustomerSigninModel.php
1 <?php
2 
3 declare(strict_types=1);
10 
15 use stdClass;
16 
21 {
26  protected $email;
27 
32  protected $password;
33 
39 
44  protected $updateProductData;
45 
46 
50  public function __construct(
51  ?string $email = null,
52  ?string $password = null,
53  ?string $activeCartSignInMode = null,
54  ?bool $updateProductData = null
55  ) {
56  $this->email = $email;
57  $this->password = $password;
58  $this->activeCartSignInMode = $activeCartSignInMode;
59  $this->updateProductData = $updateProductData;
60  }
61 
68  public function getEmail()
69  {
70  if (is_null($this->email)) {
72  $data = $this->raw(self::FIELD_EMAIL);
73  if (is_null($data)) {
74  return null;
75  }
76  $this->email = (string) $data;
77  }
78 
79  return $this->email;
80  }
81 
88  public function getPassword()
89  {
90  if (is_null($this->password)) {
92  $data = $this->raw(self::FIELD_PASSWORD);
93  if (is_null($data)) {
94  return null;
95  }
96  $this->password = (string) $data;
97  }
98 
99  return $this->password;
100  }
101 
111  public function getActiveCartSignInMode()
112  {
113  if (is_null($this->activeCartSignInMode)) {
115  $data = $this->raw(self::FIELD_ACTIVE_CART_SIGN_IN_MODE);
116  if (is_null($data)) {
117  return null;
118  }
119  $this->activeCartSignInMode = (string) $data;
120  }
121 
123  }
124 
134  public function getUpdateProductData()
135  {
136  if (is_null($this->updateProductData)) {
138  $data = $this->raw(self::FIELD_UPDATE_PRODUCT_DATA);
139  if (is_null($data)) {
140  return null;
141  }
142  $this->updateProductData = (bool) $data;
143  }
144 
146  }
147 
148 
152  public function setEmail(?string $email): void
153  {
154  $this->email = $email;
155  }
156 
160  public function setPassword(?string $password): void
161  {
162  $this->password = $password;
163  }
164 
168  public function setActiveCartSignInMode(?string $activeCartSignInMode): void
169  {
170  $this->activeCartSignInMode = $activeCartSignInMode;
171  }
172 
176  public function setUpdateProductData(?bool $updateProductData): void
177  {
178  $this->updateProductData = $updateProductData;
179  }
180 }
__construct(?string $email=null, ?string $password=null, ?string $activeCartSignInMode=null, ?bool $updateProductData=null)