commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
ApiResource.php
1 <?php
2 
3 declare(strict_types=1);
10 namespace Commercetools\Client;
11 
12 use GuzzleHttp\ClientInterface;
13 
15 {
20  private $uri;
21 
26  private $args = [];
27 
32  private $client;
33 
38  public function __construct(string $uri = '', array $args = [], ClientInterface $client = null)
39  {
40  $this->uri = $uri;
41  $this->args = $args;
42  $this->client = $client;
43  }
44 
48  final public function getUri(): string
49  {
50  return $this->uri;
51  }
52 
56  final public function getArgs(): array
57  {
58  return $this->args;
59  }
60 
61  final public function getClient(): ?ClientInterface
62  {
63  return $this->client;
64  }
65 }
__construct(string $uri='', array $args=[], ClientInterface $client=null)
Definition: ApiResource.php:38