commercetools-sdk-php-v2  master
The platform, import-api and ml-api PHP sdks generated from our api reference.
MlRequestBuilder.php
1 <?php
2 
3 declare(strict_types=1);
10 namespace Commercetools\Ml\Client;
11 
14 use GuzzleHttp\ClientInterface;
15 
20 {
24  public function __construct(ClientInterface $client = null, array $args = [])
25  {
26  parent::__construct('', $args, $client);
27  }
28 
31  public function withProjectKey(string $projectKey = null): ResourceByProjectKey
32  {
33  $args = $this->getArgs();
34  if (!is_null($projectKey)) {
35  $args['projectKey'] = $projectKey;
36  }
37 
38  return new ResourceByProjectKey($args, $this->getClient());
39  }
40 }
__construct(ClientInterface $client=null, array $args=[])