commercetools-sdk-php-v2  master
The platform, import-api and ml-api PHP sdks generated from our api reference.
ResourceByProjectKeyCustomerGroupsByID.php
1 <?php
2 
3 declare(strict_types=1);
10 
13 use GuzzleHttp\ClientInterface;
14 use Psr\Http\Message\UploadedFileInterface;
15 
20 {
24  public function __construct(array $args = [], ClientInterface $client = null)
25  {
26  parent::__construct('/{projectKey}/customer-groups/{ID}', $args, $client);
27  }
28 
33  public function get($body = null, array $headers = []): ByProjectKeyCustomerGroupsByIDGet
34  {
35  $args = $this->getArgs();
36 
37  return new ByProjectKeyCustomerGroupsByIDGet($args['projectKey'], $args['ID'], $body, $headers, $this->getClient());
38  }
43  public function head($body = null, array $headers = []): ByProjectKeyCustomerGroupsByIDHead
44  {
45  $args = $this->getArgs();
46 
47  return new ByProjectKeyCustomerGroupsByIDHead($args['projectKey'], $args['ID'], $body, $headers, $this->getClient());
48  }
53  public function post(?CustomerGroupUpdate $body = null, array $headers = []): ByProjectKeyCustomerGroupsByIDPost
54  {
55  $args = $this->getArgs();
56 
57  return new ByProjectKeyCustomerGroupsByIDPost($args['projectKey'], $args['ID'], $body, $headers, $this->getClient());
58  }
63  public function delete($body = null, array $headers = []): ByProjectKeyCustomerGroupsByIDDelete
64  {
65  $args = $this->getArgs();
66 
67  return new ByProjectKeyCustomerGroupsByIDDelete($args['projectKey'], $args['ID'], $body, $headers, $this->getClient());
68  }
69 }