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
ResourceByProjectKeyInStoreKeyByStoreKeyProducts.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
ResourceByProjectKeyInStoreKeyByStoreKeyProducts
extends
ApiResource
19
{
23
public
function
__construct
(array $args = [], ClientInterface $client =
null
)
24
{
25
parent::__construct(
'/{projectKey}/in-store/key={storeKey}/products'
, $args, $client);
26
}
27
30
public
function
withProductId
(
string
$productID =
null
):
ResourceByProjectKeyInStoreKeyByStoreKeyProductsByProductID
31
{
32
$args = $this->
getArgs
();
33
if
(!is_null($productID)) {
34
$args[
'productID'
] = $productID;
35
}
36
37
return
new
ResourceByProjectKeyInStoreKeyByStoreKeyProductsByProductID
($args, $this->
getClient
());
38
}
41
public
function
withProductKey
(
string
$productKey =
null
):
ResourceByProjectKeyInStoreKeyByStoreKeyProductsKeyByProductKey
42
{
43
$args = $this->
getArgs
();
44
if
(!is_null($productKey)) {
45
$args[
'productKey'
] = $productKey;
46
}
47
48
return
new
ResourceByProjectKeyInStoreKeyByStoreKeyProductsKeyByProductKey
($args, $this->
getClient
());
49
}
50
}
Commercetools\Api\Client\Resource\ResourceByProjectKeyInStoreKeyByStoreKeyProductsKeyByProductKey
Definition:
ResourceByProjectKeyInStoreKeyByStoreKeyProductsKeyByProductKey.php:19
Commercetools\Api\Client\Resource\ResourceByProjectKeyInStoreKeyByStoreKeyProductsByProductID
Definition:
ResourceByProjectKeyInStoreKeyByStoreKeyProductsByProductID.php:19
Commercetools\Api\Client\Resource\ResourceByProjectKeyInStoreKeyByStoreKeyProducts
Definition:
ResourceByProjectKeyInStoreKeyByStoreKeyProducts.php:19
Commercetools\Api\Client\Resource\ResourceByProjectKeyInStoreKeyByStoreKeyProducts\withProductId
withProductId(string $productID=null)
Definition:
ResourceByProjectKeyInStoreKeyByStoreKeyProducts.php:30
Commercetools\Api\Client\Resource\ResourceByProjectKeyInStoreKeyByStoreKeyProducts\withProductKey
withProductKey(string $productKey=null)
Definition:
ResourceByProjectKeyInStoreKeyByStoreKeyProducts.php:41
Commercetools\Api\Client\Resource\ResourceByProjectKeyInStoreKeyByStoreKeyProducts\__construct
__construct(array $args=[], ClientInterface $client=null)
Definition:
ResourceByProjectKeyInStoreKeyByStoreKeyProducts.php:23
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