commercetools-sdk-php-v2  master
The platform, import-api and ml-api PHP sdks generated from our api reference.
ImportRequestBuilder.php
1 <?php
2 
3 namespace Commercetools\Client;
4 
8 use GuzzleHttp\ClientInterface;
9 
10 class ImportRequestBuilder extends Builder
11 {
15  private $projectKey;
16 
20  public function __construct(string $projectKey, ClientInterface $client, array $args = [])
21  {
22  parent::__construct($client, $args);
23  $this->projectKey = $projectKey;
24  }
25 
26  public function with(): ResourceByProjectKey
27  {
28  return $this->withProjectKeyValue($this->projectKey);
29  }
30 
31 
32  public function categories(): Resource\ResourceByProjectKeyCategories
33  {
34  return $this->with()->categories();
35  }
36 
37  public function customers(): Resource\ResourceByProjectKeyCustomers
38  {
39  return $this->with()->customers();
40  }
41 
43  {
44  return $this->with()->importContainers();
45  }
46 
48  {
49  return $this->with()->importOperations();
50  }
51 
52  public function inventories(): Resource\ResourceByProjectKeyInventories
53  {
54  return $this->with()->inventories();
55  }
56 
57  public function orderPatches(): Resource\ResourceByProjectKeyOrderPatches
58  {
59  return $this->with()->orderPatches();
60  }
61 
62  public function orders(): Resource\ResourceByProjectKeyOrders
63  {
64  return $this->with()->orders();
65  }
66 
67  public function prices(): Resource\ResourceByProjectKeyPrices
68  {
69  return $this->with()->prices();
70  }
71 
73  {
74  return $this->with()->productDrafts();
75  }
76 
78  {
79  return $this->with()->productVariantPatches();
80  }
81 
83  {
84  return $this->with()->productVariants();
85  }
86 
87  public function products(): Resource\ResourceByProjectKeyProducts
88  {
89  return $this->with()->products();
90  }
91 
92  public function productTypes(): Resource\ResourceByProjectKeyProductTypes
93  {
94  return $this->with()->productTypes();
95  }
96 }
__construct(string $projectKey, ClientInterface $client, array $args=[])