commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
Loading...
Searching...
No Matches
ResourceByProjectKeyMeQuotes.php
1<?php
2
3declare(strict_types=1);
10
12use GuzzleHttp\ClientInterface;
13use Psr\Http\Message\UploadedFileInterface;
14
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}