commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
Loading...
Searching...
No Matches
CustomerResetPasswordBuilder.php
1<?php
2
3declare(strict_types=1);
10
16use stdClass;
17
22{
27 private $tokenValue;
28
33 private $newPassword;
34
39 private $version;
40
47 public function getTokenValue()
48 {
49 return $this->tokenValue;
50 }
51
58 public function getNewPassword()
59 {
60 return $this->newPassword;
61 }
62
69 public function getVersion()
70 {
71 return $this->version;
72 }
73
78 public function withTokenValue(?string $tokenValue)
79 {
80 $this->tokenValue = $tokenValue;
81
82 return $this;
83 }
84
89 public function withNewPassword(?string $newPassword)
90 {
91 $this->newPassword = $newPassword;
92
93 return $this;
94 }
95
100 public function withVersion(?int $version)
101 {
102 $this->version = $version;
103
104 return $this;
105 }
106
107
108 public function build(): CustomerResetPassword
109 {
111 $this->tokenValue,
112 $this->newPassword,
113 $this->version
114 );
115 }
116
117 public static function of(): CustomerResetPasswordBuilder
118 {
119 return new self();
120 }
121}