commercetools-sdk-php-v2  master
The platform, import-api and ml-api PHP sdks generated from our api reference.
ResourceByProjectKeyInStoreKeyByStoreKeyProductTailoring.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}/in-store/key={storeKey}/product-tailoring', $args, $client);
27  }
28 
33  public function get($body = null, array $headers = []): ByProjectKeyInStoreKeyByStoreKeyProductTailoringGet
34  {
35  $args = $this->getArgs();
36 
37  return new ByProjectKeyInStoreKeyByStoreKeyProductTailoringGet($args['projectKey'], $args['storeKey'], $body, $headers, $this->getClient());
38  }
43  public function post(?ProductTailoringInStoreDraft $body = null, array $headers = []): ByProjectKeyInStoreKeyByStoreKeyProductTailoringPost
44  {
45  $args = $this->getArgs();
46 
47  return new ByProjectKeyInStoreKeyByStoreKeyProductTailoringPost($args['projectKey'], $args['storeKey'], $body, $headers, $this->getClient());
48  }
49 }