commercetools-sdk-php-v2  master
The platform, import-api and ml-api PHP sdks generated from our api reference.
ResourceByProjectKeyMePassword.php
1 <?php
2 
3 declare(strict_types=1);
10 
13 use GuzzleHttp\ClientInterface;
14 use Psr\Http\Message\UploadedFileInterface;
15 
20 {
24  public function __construct(array $args = [], ClientInterface $client = null)
25  {
26  parent::__construct('/{projectKey}/me/password', $args, $client);
27  }
28 
32  {
33  $args = $this->getArgs();
34 
35  return new ResourceByProjectKeyMePasswordReset($args, $this->getClient());
36  }
37 
42  public function post(?MyCustomerChangePassword $body = null, array $headers = []): ByProjectKeyMePasswordPost
43  {
44  $args = $this->getArgs();
45 
46  return new ByProjectKeyMePasswordPost($args['projectKey'], $body, $headers, $this->getClient());
47  }
48 }
post(?MyCustomerChangePassword $body=null, array $headers=[])