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
ResourceByProjectKeyMeQuotes.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
ResourceByProjectKeyMeQuotes
extends
ApiResource
19
{
23
public
function
__construct
(array $args = [], ClientInterface $client =
null
)
24
{
25
parent::__construct(
'/{projectKey}/me/quotes'
, $args, $client);
26
}
27
30
public
function
withId
(
string
$ID =
null
):
ResourceByProjectKeyMeQuotesByID
31
{
32
$args = $this->
getArgs
();
33
if
(!is_null($ID)) {
34
$args[
'ID'
] = $ID;
35
}
36
37
return
new
ResourceByProjectKeyMeQuotesByID
($args, $this->
getClient
());
38
}
41
public
function
withKey
(
string
$key =
null
):
ResourceByProjectKeyMeQuotesKeyByKey
42
{
43
$args = $this->
getArgs
();
44
if
(!is_null($key)) {
45
$args[
'key'
] = $key;
46
}
47
48
return
new
ResourceByProjectKeyMeQuotesKeyByKey
($args, $this->
getClient
());
49
}
50
55
public
function
get
($body =
null
, array $headers = []):
ByProjectKeyMeQuotesGet
56
{
57
$args = $this->
getArgs
();
58
59
return
new
ByProjectKeyMeQuotesGet
($args[
'projectKey'
], $body, $headers, $this->
getClient
());
60
}
65
public
function
head
($body =
null
, array $headers = []):
ByProjectKeyMeQuotesHead
66
{
67
$args = $this->
getArgs
();
68
69
return
new
ByProjectKeyMeQuotesHead
($args[
'projectKey'
], $body, $headers, $this->
getClient
());
70
}
71
}
Commercetools\Api\Client\Resource\ByProjectKeyMeQuotesGet
Definition
ByProjectKeyMeQuotesGet.php:41
Commercetools\Api\Client\Resource\ByProjectKeyMeQuotesHead
Definition
ByProjectKeyMeQuotesHead.php:35
Commercetools\Api\Client\Resource\ResourceByProjectKeyMeQuotesByID
Definition
ResourceByProjectKeyMeQuotesByID.php:20
Commercetools\Api\Client\Resource\ResourceByProjectKeyMeQuotes
Definition
ResourceByProjectKeyMeQuotes.php:19
Commercetools\Api\Client\Resource\ResourceByProjectKeyMeQuotes\withKey
withKey(string $key=null)
Definition
ResourceByProjectKeyMeQuotes.php:41
Commercetools\Api\Client\Resource\ResourceByProjectKeyMeQuotes\withId
withId(string $ID=null)
Definition
ResourceByProjectKeyMeQuotes.php:30
Commercetools\Api\Client\Resource\ResourceByProjectKeyMeQuotes\__construct
__construct(array $args=[], ClientInterface $client=null)
Definition
ResourceByProjectKeyMeQuotes.php:23
Commercetools\Api\Client\Resource\ResourceByProjectKeyMeQuotes\head
head($body=null, array $headers=[])
Definition
ResourceByProjectKeyMeQuotes.php:65
Commercetools\Api\Client\Resource\ResourceByProjectKeyMeQuotesKeyByKey
Definition
ResourceByProjectKeyMeQuotesKeyByKey.php:20
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.8