commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
Loading...
Searching...
No Matches
lib
commercetools-api
src
Client
Resource
ResourceByProjectKeyVariantProjections.php
1
<?php
2
3
declare(strict_types=1);
9
namespace
Commercetools\Api\Client\Resource
;
10
11
use
Commercetools\Client\ApiResource
;
12
use GuzzleHttp\ClientInterface;
13
use Psr\Http\Message\UploadedFileInterface;
14
18
class
ResourceByProjectKeyVariantProjections
extends
ApiResource
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
37
return
new
ResourceByProjectKeyVariantProjectionsKeyByKey
($args, $this->
getClient
());
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
}
Commercetools\Api\Client\Resource\ByProjectKeyVariantProjectionsGet
Definition
ByProjectKeyVariantProjectionsGet.php:45
Commercetools\Api\Client\Resource\ByProjectKeyVariantProjectionsHead
Definition
ByProjectKeyVariantProjectionsHead.php:37
Commercetools\Api\Client\Resource\ResourceByProjectKeyVariantProjectionsByID
Definition
ResourceByProjectKeyVariantProjectionsByID.php:19
Commercetools\Api\Client\Resource\ResourceByProjectKeyVariantProjections
Definition
ResourceByProjectKeyVariantProjections.php:19
Commercetools\Api\Client\Resource\ResourceByProjectKeyVariantProjections\withId
withId(?string $ID=null)
Definition
ResourceByProjectKeyVariantProjections.php:41
Commercetools\Api\Client\Resource\ResourceByProjectKeyVariantProjections\withKey
withKey(?string $key=null)
Definition
ResourceByProjectKeyVariantProjections.php:30
Commercetools\Api\Client\Resource\ResourceByProjectKeyVariantProjections\head
head($body=null, array $headers=[])
Definition
ResourceByProjectKeyVariantProjections.php:65
Commercetools\Api\Client\Resource\ResourceByProjectKeyVariantProjections\__construct
__construct(array $args=[], ?ClientInterface $client=null)
Definition
ResourceByProjectKeyVariantProjections.php:23
Commercetools\Api\Client\Resource\ResourceByProjectKeyVariantProjectionsKeyByKey
Definition
ResourceByProjectKeyVariantProjectionsKeyByKey.php:19
Commercetools\Client\ApiResource
Definition
ApiResource.php:15
Commercetools\Client\ApiResource\getClient
getClient()
Definition
ApiResource.php:61
Commercetools\Client\ApiResource\getArgs
getArgs()
Definition
ApiResource.php:56
Commercetools\Api\Client\Resource
Definition
AttributeFiltering.php:9
Generated by
1.9.8