Esempio n. 1
0
 /**
  * {@inheritdoc}
  */
 public function getApi($resource)
 {
     return new GenericApi($this->client, $this->uriMap->getUri($resource));
 }
Esempio n. 2
0
 function let(ClientInterface $client, UriMapInterface $uriMap)
 {
     $uriMap->getUri('products')->willReturn('products');
     $this->beConstructedWith($client, $uriMap);
 }