commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
Loading...
Searching...
No Matches
CustomerChangePasswordBuilder.php
1<?php
2
3declare(strict_types=1);
10
16use stdClass;
17
22{
27 private $id;
28
33 private $version;
34
39 private $currentPassword;
40
45 private $newPassword;
46
53 public function getId()
54 {
55 return $this->id;
56 }
57
64 public function getVersion()
65 {
66 return $this->version;
67 }
68
76 public function getCurrentPassword()
77 {
78 return $this->currentPassword;
79 }
80
87 public function getNewPassword()
88 {
89 return $this->newPassword;
90 }
91
96 public function withId(?string $id)
97 {
98 $this->id = $id;
99
100 return $this;
101 }
102
107 public function withVersion(?int $version)
108 {
109 $this->version = $version;
110
111 return $this;
112 }
113
118 public function withCurrentPassword(?string $currentPassword)
119 {
120 $this->currentPassword = $currentPassword;
121
122 return $this;
123 }
124
129 public function withNewPassword(?string $newPassword)
130 {
131 $this->newPassword = $newPassword;
132
133 return $this;
134 }
135
136
137 public function build(): CustomerChangePassword
138 {
140 $this->id,
141 $this->version,
142 $this->currentPassword,
143 $this->newPassword
144 );
145 }
146
147 public static function of(): CustomerChangePasswordBuilder
148 {
149 return new self();
150 }
151}