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
ResourceByProjectKeyMessages.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
ResourceByProjectKeyMessages
extends
ApiResource
19
{
23
public
function
__construct
(array $args = [], ClientInterface $client =
null
)
24
{
25
parent::__construct(
'/{projectKey}/messages'
, $args, $client);
26
}
27
30
public
function
withId
(
string
$ID =
null
):
ResourceByProjectKeyMessagesByID
31
{
32
$args = $this->
getArgs
();
33
if
(!is_null($ID)) {
34
$args[
'ID'
] = $ID;
35
}
36
37
return
new
ResourceByProjectKeyMessagesByID
($args, $this->
getClient
());
38
}
39
44
public
function
get
($body =
null
, array $headers = []):
ByProjectKeyMessagesGet
45
{
46
$args = $this->
getArgs
();
47
48
return
new
ByProjectKeyMessagesGet
($args[
'projectKey'
], $body, $headers, $this->
getClient
());
49
}
54
public
function
head
($body =
null
, array $headers = []):
ByProjectKeyMessagesHead
55
{
56
$args = $this->
getArgs
();
57
58
return
new
ByProjectKeyMessagesHead
($args[
'projectKey'
], $body, $headers, $this->
getClient
());
59
}
60
}
Commercetools\Api\Client\Resource\ByProjectKeyMessagesGet
Definition
ByProjectKeyMessagesGet.php:41
Commercetools\Api\Client\Resource\ByProjectKeyMessagesHead
Definition
ByProjectKeyMessagesHead.php:35
Commercetools\Api\Client\Resource\ResourceByProjectKeyMessagesByID
Definition
ResourceByProjectKeyMessagesByID.php:19
Commercetools\Api\Client\Resource\ResourceByProjectKeyMessages
Definition
ResourceByProjectKeyMessages.php:19
Commercetools\Api\Client\Resource\ResourceByProjectKeyMessages\withId
withId(string $ID=null)
Definition
ResourceByProjectKeyMessages.php:30
Commercetools\Api\Client\Resource\ResourceByProjectKeyMessages\__construct
__construct(array $args=[], ClientInterface $client=null)
Definition
ResourceByProjectKeyMessages.php:23
Commercetools\Api\Client\Resource\ResourceByProjectKeyMessages\head
head($body=null, array $headers=[])
Definition
ResourceByProjectKeyMessages.php:54
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