commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
Loading...
Searching...
No Matches
ResourceByProjectKeyVariantProjections.php
1<?php
2
3declare(strict_types=1);
10
12use GuzzleHttp\ClientInterface;
13use Psr\Http\Message\UploadedFileInterface;
14
19{
23 public function __construct(array $args = [], ?ClientInterface $client = null)
24 {
25 parent::__construct('/{projectKey}/variant-projections', $args, $client);
26 }
27
30 public function withKey(?string $key = null): ResourceByProjectKeyVariantProjectionsKeyByKey
31 {
32 $args = $this->getArgs();
33 if (!is_null($key)) {
34 $args['key'] = $key;
35 }
36
38 }
41 public function withId(?string $ID = null): ResourceByProjectKeyVariantProjectionsByID
42 {
43 $args = $this->getArgs();
44 if (!is_null($ID)) {
45 $args['ID'] = $ID;
46 }
47
48 return new ResourceByProjectKeyVariantProjectionsByID($args, $this->getClient());
49 }
50
55 public function get($body = null, array $headers = []): ByProjectKeyVariantProjectionsGet
56 {
57 $args = $this->getArgs();
58
59 return new ByProjectKeyVariantProjectionsGet($args['projectKey'], $body, $headers, $this->getClient());
60 }
65 public function head($body = null, array $headers = []): ByProjectKeyVariantProjectionsHead
66 {
67 $args = $this->getArgs();
68
69 return new ByProjectKeyVariantProjectionsHead($args['projectKey'], $body, $headers, $this->getClient());
70 }
71}