commercetools-sdk-php-v2
master
The platform, import-api and ml-api PHP sdks generated from our api reference.
lib
commercetools-api
src
Client
Resource
ResourceByProjectKeyInStoreKeyByStoreKeyProductProjections.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
ResourceByProjectKeyInStoreKeyByStoreKeyProductProjections
extends
ApiResource
19
{
23
public
function
__construct
(array $args = [], ClientInterface $client =
null
)
24
{
25
parent::__construct(
'/{projectKey}/in-store/key={storeKey}/product-projections'
, $args, $client);
26
}
27
30
public
function
withKey
(
string
$key =
null
):
ResourceByProjectKeyInStoreKeyByStoreKeyProductProjectionsKeyByKey
31
{
32
$args = $this->
getArgs
();
33
if
(!is_null($key)) {
34
$args[
'key'
] = $key;
35
}
36
37
return
new
ResourceByProjectKeyInStoreKeyByStoreKeyProductProjectionsKeyByKey
($args, $this->
getClient
());
38
}
41
public
function
withId
(
string
$ID =
null
):
ResourceByProjectKeyInStoreKeyByStoreKeyProductProjectionsByID
42
{
43
$args = $this->
getArgs
();
44
if
(!is_null($ID)) {
45
$args[
'ID'
] = $ID;
46
}
47
48
return
new
ResourceByProjectKeyInStoreKeyByStoreKeyProductProjectionsByID
($args, $this->
getClient
());
49
}
50
}
Commercetools\Api\Client\Resource\ResourceByProjectKeyInStoreKeyByStoreKeyProductProjectionsKeyByKey
Definition:
ResourceByProjectKeyInStoreKeyByStoreKeyProductProjectionsKeyByKey.php:19
Commercetools\Api\Client\Resource\ResourceByProjectKeyInStoreKeyByStoreKeyProductProjectionsByID
Definition:
ResourceByProjectKeyInStoreKeyByStoreKeyProductProjectionsByID.php:19
Commercetools\Api\Client\Resource\ResourceByProjectKeyInStoreKeyByStoreKeyProductProjections
Definition:
ResourceByProjectKeyInStoreKeyByStoreKeyProductProjections.php:19
Commercetools\Api\Client\Resource\ResourceByProjectKeyInStoreKeyByStoreKeyProductProjections\withId
withId(string $ID=null)
Definition:
ResourceByProjectKeyInStoreKeyByStoreKeyProductProjections.php:41
Commercetools\Api\Client\Resource\ResourceByProjectKeyInStoreKeyByStoreKeyProductProjections\__construct
__construct(array $args=[], ClientInterface $client=null)
Definition:
ResourceByProjectKeyInStoreKeyByStoreKeyProductProjections.php:23
Commercetools\Api\Client\Resource\ResourceByProjectKeyInStoreKeyByStoreKeyProductProjections\withKey
withKey(string $key=null)
Definition:
ResourceByProjectKeyInStoreKeyByStoreKeyProductProjections.php:30
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:
ByProjectKeyApiClientsByIDDelete.php:9
Generated by
1.9.1