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