commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
lib
commercetools-api
src
Client
Resource
ResourceByProjectKeyAsAssociate.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
ResourceByProjectKeyAsAssociate
extends
ApiResource
19
{
23
public
function
__construct
(array $args = [], ClientInterface $client =
null
)
24
{
25
parent::__construct(
'/{projectKey}/as-associate'
, $args, $client);
26
}
27
30
public
function
withAssociateIdValue
(
string
$associateId =
null
):
ResourceByProjectKeyAsAssociateByAssociateId
31
{
32
$args = $this->
getArgs
();
33
if
(!is_null($associateId)) {
34
$args[
'associateId'
] = $associateId;
35
}
36
37
return
new
ResourceByProjectKeyAsAssociateByAssociateId
($args, $this->
getClient
());
38
}
39
}
Commercetools\Api\Client\Resource\ResourceByProjectKeyAsAssociateByAssociateId
Definition:
ResourceByProjectKeyAsAssociateByAssociateId.php:19
Commercetools\Api\Client\Resource\ResourceByProjectKeyAsAssociate
Definition:
ResourceByProjectKeyAsAssociate.php:19
Commercetools\Api\Client\Resource\ResourceByProjectKeyAsAssociate\__construct
__construct(array $args=[], ClientInterface $client=null)
Definition:
ResourceByProjectKeyAsAssociate.php:23
Commercetools\Api\Client\Resource\ResourceByProjectKeyAsAssociate\withAssociateIdValue
withAssociateIdValue(string $associateId=null)
Definition:
ResourceByProjectKeyAsAssociate.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