commercetools-sdk-php-v2  master
The platform, import-api and ml-api PHP sdks generated from our api reference.
ResourceByProjectKeyImportContainers.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}/import-containers', $args, $client);
27  }
28 
32  {
33  $args = $this->getArgs();
34  if (!is_null($importContainerKey)) {
35  $args['importContainerKey'] = $importContainerKey;
36  }
37 
39  }
40 
45  public function post(?ImportContainerDraft $body = null, array $headers = []): ByProjectKeyImportContainersPost
46  {
47  $args = $this->getArgs();
48 
49  return new ByProjectKeyImportContainersPost($args['projectKey'], $body, $headers, $this->getClient());
50  }
55  public function get($body = null, array $headers = []): ByProjectKeyImportContainersGet
56  {
57  $args = $this->getArgs();
58 
59  return new ByProjectKeyImportContainersGet($args['projectKey'], $body, $headers, $this->getClient());
60  }
61 }