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
ResourceByProjectKeyBusinessUnits.php
1
<?php
2
3
declare(strict_types=1);
9
namespace
Commercetools\Api\Client\Resource
;
10
11
use
Commercetools\Api\Models\BusinessUnit\BusinessUnitDraft
;
12
use
Commercetools\Client\ApiResource
;
13
use GuzzleHttp\ClientInterface;
14
use Psr\Http\Message\UploadedFileInterface;
15
19
class
ResourceByProjectKeyBusinessUnits
extends
ApiResource
20
{
24
public
function
__construct
(array $args = [], ClientInterface $client =
null
)
25
{
26
parent::__construct(
'/{projectKey}/business-units'
, $args, $client);
27
}
28
31
public
function
withKey
(
string
$key =
null
):
ResourceByProjectKeyBusinessUnitsKeyByKey
32
{
33
$args = $this->
getArgs
();
34
if
(!is_null($key)) {
35
$args[
'key'
] = $key;
36
}
37
38
return
new
ResourceByProjectKeyBusinessUnitsKeyByKey
($args, $this->
getClient
());
39
}
42
public
function
withId
(
string
$ID =
null
):
ResourceByProjectKeyBusinessUnitsByID
43
{
44
$args = $this->
getArgs
();
45
if
(!is_null($ID)) {
46
$args[
'ID'
] = $ID;
47
}
48
49
return
new
ResourceByProjectKeyBusinessUnitsByID
($args, $this->
getClient
());
50
}
53
public
function
search
():
ResourceByProjectKeyBusinessUnitsSearch
54
{
55
$args = $this->
getArgs
();
56
57
return
new
ResourceByProjectKeyBusinessUnitsSearch
($args, $this->
getClient
());
58
}
61
public
function
searchIndexingStatus
():
ResourceByProjectKeyBusinessUnitsSearchIndexingStatus
62
{
63
$args = $this->
getArgs
();
64
65
return
new
ResourceByProjectKeyBusinessUnitsSearchIndexingStatus
($args, $this->
getClient
());
66
}
67
72
public
function
get
($body =
null
, array $headers = []):
ByProjectKeyBusinessUnitsGet
73
{
74
$args = $this->
getArgs
();
75
76
return
new
ByProjectKeyBusinessUnitsGet
($args[
'projectKey'
], $body, $headers, $this->
getClient
());
77
}
82
public
function
head
($body =
null
, array $headers = []):
ByProjectKeyBusinessUnitsHead
83
{
84
$args = $this->
getArgs
();
85
86
return
new
ByProjectKeyBusinessUnitsHead
($args[
'projectKey'
], $body, $headers, $this->
getClient
());
87
}
92
public
function
post
(?
BusinessUnitDraft
$body =
null
, array $headers = []):
ByProjectKeyBusinessUnitsPost
93
{
94
$args = $this->
getArgs
();
95
96
return
new
ByProjectKeyBusinessUnitsPost
($args[
'projectKey'
], $body, $headers, $this->
getClient
());
97
}
98
}
Commercetools\Api\Client\Resource\ByProjectKeyBusinessUnitsGet
Definition
ByProjectKeyBusinessUnitsGet.php:41
Commercetools\Api\Client\Resource\ByProjectKeyBusinessUnitsHead
Definition
ByProjectKeyBusinessUnitsHead.php:35
Commercetools\Api\Client\Resource\ByProjectKeyBusinessUnitsPost
Definition
ByProjectKeyBusinessUnitsPost.php:38
Commercetools\Api\Client\Resource\ResourceByProjectKeyBusinessUnitsByID
Definition
ResourceByProjectKeyBusinessUnitsByID.php:20
Commercetools\Api\Client\Resource\ResourceByProjectKeyBusinessUnits
Definition
ResourceByProjectKeyBusinessUnits.php:20
Commercetools\Api\Client\Resource\ResourceByProjectKeyBusinessUnits\withKey
withKey(string $key=null)
Definition
ResourceByProjectKeyBusinessUnits.php:31
Commercetools\Api\Client\Resource\ResourceByProjectKeyBusinessUnits\head
head($body=null, array $headers=[])
Definition
ResourceByProjectKeyBusinessUnits.php:82
Commercetools\Api\Client\Resource\ResourceByProjectKeyBusinessUnits\withId
withId(string $ID=null)
Definition
ResourceByProjectKeyBusinessUnits.php:42
Commercetools\Api\Client\Resource\ResourceByProjectKeyBusinessUnits\searchIndexingStatus
searchIndexingStatus()
Definition
ResourceByProjectKeyBusinessUnits.php:61
Commercetools\Api\Client\Resource\ResourceByProjectKeyBusinessUnits\__construct
__construct(array $args=[], ClientInterface $client=null)
Definition
ResourceByProjectKeyBusinessUnits.php:24
Commercetools\Api\Client\Resource\ResourceByProjectKeyBusinessUnits\search
search()
Definition
ResourceByProjectKeyBusinessUnits.php:53
Commercetools\Api\Client\Resource\ResourceByProjectKeyBusinessUnits\post
post(?BusinessUnitDraft $body=null, array $headers=[])
Definition
ResourceByProjectKeyBusinessUnits.php:92
Commercetools\Api\Client\Resource\ResourceByProjectKeyBusinessUnitsKeyByKey
Definition
ResourceByProjectKeyBusinessUnitsKeyByKey.php:20
Commercetools\Api\Client\Resource\ResourceByProjectKeyBusinessUnitsSearch
Definition
ResourceByProjectKeyBusinessUnitsSearch.php:20
Commercetools\Api\Client\Resource\ResourceByProjectKeyBusinessUnitsSearchIndexingStatus
Definition
ResourceByProjectKeyBusinessUnitsSearchIndexingStatus.php:19
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\Models\BusinessUnit\BusinessUnitDraft
Definition
BusinessUnitDraft.php:18
Commercetools\Api\Client\Resource
Definition
ByProjectKeyApiClientsByIDDelete.php:9
Generated by
1.9.8