commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
ResourceByProjectKeyAsAssociate.php
1 <?php
2 
3 declare(strict_types=1);
10 
12 use GuzzleHttp\ClientInterface;
13 use Psr\Http\Message\UploadedFileInterface;
14 
19 {
23  public function __construct(array $args = [], ClientInterface $client = null)
24  {
25  parent::__construct('/{projectKey}/as-associate', $args, $client);
26  }
27 
30  public function withAssociateIdValue(string $associateId = null): ResourceByProjectKeyAsAssociateByAssociateId
31  {
32  $args = $this->getArgs();
33  if (!is_null($associateId)) {
34  $args['associateId'] = $associateId;
35  }
36 
37  return new ResourceByProjectKeyAsAssociateByAssociateId($args, $this->getClient());
38  }
39 }