commercetools-sdk-php-v2  master
The platform, import-api and ml-api PHP sdks generated from our api reference.
ResourceByProjectKey.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}', $args, $client);
26  }
27 
31  {
32  $args = $this->getArgs();
33 
34  return new ResourceByProjectKeyImportContainers($args, $this->getClient());
35  }
39  {
40  $args = $this->getArgs();
41 
42  return new ResourceByProjectKeyImportOperations($args, $this->getClient());
43  }
47  {
48  $args = $this->getArgs();
49 
50  return new ResourceByProjectKeyCategories($args, $this->getClient());
51  }
55  {
56  $args = $this->getArgs();
57 
58  return new ResourceByProjectKeyPrices($args, $this->getClient());
59  }
63  {
64  $args = $this->getArgs();
65 
66  return new ResourceByProjectKeyStandalonePrices($args, $this->getClient());
67  }
71  {
72  $args = $this->getArgs();
73 
74  return new ResourceByProjectKeyProducts($args, $this->getClient());
75  }
79  {
80  $args = $this->getArgs();
81 
82  return new ResourceByProjectKeyProductDrafts($args, $this->getClient());
83  }
87  {
88  $args = $this->getArgs();
89 
90  return new ResourceByProjectKeyProductTypes($args, $this->getClient());
91  }
95  {
96  $args = $this->getArgs();
97 
98  return new ResourceByProjectKeyProductVariants($args, $this->getClient());
99  }
103  {
104  $args = $this->getArgs();
105 
106  return new ResourceByProjectKeyProductVariantPatches($args, $this->getClient());
107  }
111  {
112  $args = $this->getArgs();
113 
114  return new ResourceByProjectKeyOrders($args, $this->getClient());
115  }
119  {
120  $args = $this->getArgs();
121 
122  return new ResourceByProjectKeyOrderPatches($args, $this->getClient());
123  }
127  {
128  $args = $this->getArgs();
129 
130  return new ResourceByProjectKeyCustomers($args, $this->getClient());
131  }
135  {
136  $args = $this->getArgs();
137 
138  return new ResourceByProjectKeyInventories($args, $this->getClient());
139  }
142  public function types(): ResourceByProjectKeyTypes
143  {
144  $args = $this->getArgs();
145 
146  return new ResourceByProjectKeyTypes($args, $this->getClient());
147  }
151  {
152  $args = $this->getArgs();
153 
154  return new ResourceByProjectKeyDiscountCodes($args, $this->getClient());
155  }
156 }
__construct(array $args=[], ClientInterface $client=null)