commercetools-sdk-php-v2  master
The platform, import-api and ml-api PHP sdks generated from our api reference.
ResourceByProjectKeySubscriptionsByID.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}/subscriptions/{ID}', $args, $client);
27  }
28 
32  {
33  $args = $this->getArgs();
34 
35  return new ResourceByProjectKeySubscriptionsByIDHealth($args, $this->getClient());
36  }
37 
42  public function get($body = null, array $headers = []): ByProjectKeySubscriptionsByIDGet
43  {
44  $args = $this->getArgs();
45 
46  return new ByProjectKeySubscriptionsByIDGet($args['projectKey'], $args['ID'], $body, $headers, $this->getClient());
47  }
52  public function head($body = null, array $headers = []): ByProjectKeySubscriptionsByIDHead
53  {
54  $args = $this->getArgs();
55 
56  return new ByProjectKeySubscriptionsByIDHead($args['projectKey'], $args['ID'], $body, $headers, $this->getClient());
57  }
62  public function post(?SubscriptionUpdate $body = null, array $headers = []): ByProjectKeySubscriptionsByIDPost
63  {
64  $args = $this->getArgs();
65 
66  return new ByProjectKeySubscriptionsByIDPost($args['projectKey'], $args['ID'], $body, $headers, $this->getClient());
67  }
72  public function delete($body = null, array $headers = []): ByProjectKeySubscriptionsByIDDelete
73  {
74  $args = $this->getArgs();
75 
76  return new ByProjectKeySubscriptionsByIDDelete($args['projectKey'], $args['ID'], $body, $headers, $this->getClient());
77  }
78 }