commercetools-sdk-php-v2  master
The platform, import-api and ml-api PHP sdks generated from our api reference.
ResourceByProjectKeyImportContainersByImportContainerKey.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/{importContainerKey}', $args, $client);
27  }
28 
32  {
33  $args = $this->getArgs();
34 
36  }
40  {
41  $args = $this->getArgs();
42 
44  }
45 
50  public function put(?ImportContainerUpdateDraft $body = null, array $headers = []): ByProjectKeyImportContainersByImportContainerKeyPut
51  {
52  $args = $this->getArgs();
53 
54  return new ByProjectKeyImportContainersByImportContainerKeyPut($args['projectKey'], $args['importContainerKey'], $body, $headers, $this->getClient());
55  }
60  public function get($body = null, array $headers = []): ByProjectKeyImportContainersByImportContainerKeyGet
61  {
62  $args = $this->getArgs();
63 
64  return new ByProjectKeyImportContainersByImportContainerKeyGet($args['projectKey'], $args['importContainerKey'], $body, $headers, $this->getClient());
65  }
70  public function delete($body = null, array $headers = []): ByProjectKeyImportContainersByImportContainerKeyDelete
71  {
72  $args = $this->getArgs();
73 
74  return new ByProjectKeyImportContainersByImportContainerKeyDelete($args['projectKey'], $args['importContainerKey'], $body, $headers, $this->getClient());
75  }
76 }