commercetools-sdk-php-v2  6.0.2
The platform, import-api and ml-api PHP sdks generated from our api reference.
ImportRequestBuilder.php
1 <?php
2 
3 declare(strict_types=1);
11 
14 use GuzzleHttp\ClientInterface;
15 
17 {
21  public function __construct(ClientInterface $client = null, array $args = [])
22  {
23  parent::__construct('', $args, $client);
24  }
25 
28  public function withProjectKeyValue(string $projectKey = null): ResourceByProjectKey
29  {
30  $args = $this->getArgs();
31  if (!is_null($projectKey)) {
32  $args['projectKey'] = $projectKey;
33  }
34 
35  return new ResourceByProjectKey($args, $this->getClient());
36  }
37 }
Commercetools\Import\Client\ImportRequestBuilder\withProjectKeyValue
withProjectKeyValue(string $projectKey=null)
Definition: ImportRequestBuilder.php:28
Commercetools\Import\Client\Resource\ResourceByProjectKey
Definition: ResourceByProjectKey.php:18
Commercetools\Client\ApiResource
Definition: ApiResource.php:14
Commercetools\Import\Client
Definition: BaseAuthConfig.php:10
Commercetools\Import\Client\ImportRequestBuilder\__construct
__construct(ClientInterface $client=null, array $args=[])
Definition: ImportRequestBuilder.php:21
Commercetools\Client\ApiResource\getArgs
getArgs()
Definition: ApiResource.php:56
Commercetools\Import\Client\ImportRequestBuilder
Definition: ImportRequestBuilder.php:16
Commercetools\Client\ApiResource\getClient
getClient()
Definition: ApiResource.php:61