commercetools-sdk-php-v2  master
The platform, import-api and ml-api PHP sdks generated from our api reference.
Public Member Functions | List of all members
Commercetools\Api\Client\Resource\ByProjectKeyProductProjectionsKeyByKeyGet Class Reference
Inheritance diagram for Commercetools\Api\Client\Resource\ByProjectKeyProductProjectionsKeyByKeyGet:
Commercetools\Api\Client\Resource\Deprecatable200 Commercetools\Api\Client\Resource\Errorable Commercetools\Api\Client\Resource\Expandable Commercetools\Api\Client\Resource\StoreProjecting Commercetools\Api\Client\Resource\LocaleProjecting Commercetools\Api\Client\Resource\PriceSelecting Commercetools\Api\Client\Resource\ProjectionSelecting Commercetools\Client\ApiRequest

Public Member Functions

 __construct (string $projectKey, string $key, $body=null, array $headers=[], ClientInterface $client=null)
 
 mapFromResponse (?ResponseInterface $response, string $resultType=null)
 
 execute (array $options=[], string $resultType=null)
 
 executeAsync (array $options=[], string $resultType=null)
 
 withStaged ($staged)
 
 withPriceCurrency ($priceCurrency)
 
 withPriceCountry ($priceCountry)
 
 withPriceCustomerGroup ($priceCustomerGroup)
 
 withPriceChannel ($priceChannel)
 
 withLocaleProjection ($localeProjection)
 
 withStoreProjection ($storeProjection)
 
 withExpand ($expand)
 
- Public Member Functions inherited from Commercetools\Client\ApiRequest
 __construct (?ClientInterface $client, string $method, string $uri, array $headers=[], $body=null, string $version='1.1')
 
 withQueryParam (string $parameterName, $value)
 
 send (array $options=[])
 
 sendAsync (array $options=[])
 
 getClient ()
 
- Public Member Functions inherited from Commercetools\Api\Client\Resource\ProjectionSelecting
 withStaged (bool $staged)
 
- Public Member Functions inherited from Commercetools\Api\Client\Resource\PriceSelecting
 withPriceCurrency (string $priceCurrency)
 
 withPriceCountry (string $priceCountry)
 
 withPriceCustomerGroup (string $priceCustomerGroup)
 
 withPriceChannel (string $priceChannel)
 
 withLocaleProjection (string $localeProjection)
 
- Public Member Functions inherited from Commercetools\Api\Client\Resource\LocaleProjecting
 withLocaleProjection (string $localeProjection)
 
- Public Member Functions inherited from Commercetools\Api\Client\Resource\StoreProjecting
 withStoreProjection (string $storeProjection)
 
- Public Member Functions inherited from Commercetools\Api\Client\Resource\Expandable
 withExpand (string $expand)
 

Additional Inherited Members

- Protected Member Functions inherited from Commercetools\Client\ApiRequest
 ensureHeader (array $headers, string $header, $defaultValue)
 
 responseData (ResponseInterface $response)
 

Detailed Description

@psalm-suppress PropertyNotSetInConstructor @template-implements ProjectionSelecting<ByProjectKeyProductProjectionsKeyByKeyGet> @template-implements PriceSelecting<ByProjectKeyProductProjectionsKeyByKeyGet> @template-implements LocaleProjecting<ByProjectKeyProductProjectionsKeyByKeyGet> @template-implements StoreProjecting<ByProjectKeyProductProjectionsKeyByKeyGet> @template-implements Expandable<ByProjectKeyProductProjectionsKeyByKeyGet> @template-implements Errorable<ByProjectKeyProductProjectionsKeyByKeyGet> @template-implements Deprecatable200<ByProjectKeyProductProjectionsKeyByKeyGet>

Definition at line 41 of file ByProjectKeyProductProjectionsKeyByKeyGet.php.

Constructor & Destructor Documentation

◆ __construct()

Commercetools\Api\Client\Resource\ByProjectKeyProductProjectionsKeyByKeyGet::__construct ( string  $projectKey,
string  $key,
  $body = null,
array  $headers = [],
ClientInterface  $client = null 
)
Parameters
?object|array|string$body @psalm-param array<string, scalar|scalar[]> $headers

Definition at line 47 of file ByProjectKeyProductProjectionsKeyByKeyGet.php.

Member Function Documentation

◆ execute()

Commercetools\Api\Client\Resource\ByProjectKeyProductProjectionsKeyByKeyGet::execute ( array  $options = [],
string  $resultType = null 
)

@template T of JsonObject @psalm-param ?class-string<T> $resultType

Returns
null|T|ErrorResponse|JsonObject|ProductProjection

Definition at line 109 of file ByProjectKeyProductProjectionsKeyByKeyGet.php.

◆ executeAsync()

Commercetools\Api\Client\Resource\ByProjectKeyProductProjectionsKeyByKeyGet::executeAsync ( array  $options = [],
string  $resultType = null 
)

@template T of JsonObject @psalm-param ?class-string<T> $resultType

Returns
PromiseInterface

Definition at line 132 of file ByProjectKeyProductProjectionsKeyByKeyGet.php.

◆ mapFromResponse()

Commercetools\Api\Client\Resource\ByProjectKeyProductProjectionsKeyByKeyGet::mapFromResponse ( ?ResponseInterface  $response,
string  $resultType = null 
)

@template T of JsonObject @psalm-param ?class-string<T> $resultType

Returns
ErrorResponse|JsonObject|ProductProjection|T|null

Definition at line 58 of file ByProjectKeyProductProjectionsKeyByKeyGet.php.

◆ withExpand()

Commercetools\Api\Client\Resource\ByProjectKeyProductProjectionsKeyByKeyGet::withExpand (   $expand)

@psalm-param scalar|scalar[] $expand

Definition at line 218 of file ByProjectKeyProductProjectionsKeyByKeyGet.php.

◆ withLocaleProjection()

Commercetools\Api\Client\Resource\ByProjectKeyProductProjectionsKeyByKeyGet::withLocaleProjection (   $localeProjection)

@psalm-param scalar|scalar[] $localeProjection

Definition at line 200 of file ByProjectKeyProductProjectionsKeyByKeyGet.php.

◆ withPriceChannel()

Commercetools\Api\Client\Resource\ByProjectKeyProductProjectionsKeyByKeyGet::withPriceChannel (   $priceChannel)

@psalm-param scalar|scalar[] $priceChannel

Definition at line 191 of file ByProjectKeyProductProjectionsKeyByKeyGet.php.

◆ withPriceCountry()

Commercetools\Api\Client\Resource\ByProjectKeyProductProjectionsKeyByKeyGet::withPriceCountry (   $priceCountry)

@psalm-param scalar|scalar[] $priceCountry

Definition at line 173 of file ByProjectKeyProductProjectionsKeyByKeyGet.php.

◆ withPriceCurrency()

Commercetools\Api\Client\Resource\ByProjectKeyProductProjectionsKeyByKeyGet::withPriceCurrency (   $priceCurrency)

@psalm-param scalar|scalar[] $priceCurrency

Definition at line 164 of file ByProjectKeyProductProjectionsKeyByKeyGet.php.

◆ withPriceCustomerGroup()

Commercetools\Api\Client\Resource\ByProjectKeyProductProjectionsKeyByKeyGet::withPriceCustomerGroup (   $priceCustomerGroup)

@psalm-param scalar|scalar[] $priceCustomerGroup

Definition at line 182 of file ByProjectKeyProductProjectionsKeyByKeyGet.php.

◆ withStaged()

Commercetools\Api\Client\Resource\ByProjectKeyProductProjectionsKeyByKeyGet::withStaged (   $staged)

@psalm-param scalar|scalar[] $staged

Definition at line 155 of file ByProjectKeyProductProjectionsKeyByKeyGet.php.

◆ withStoreProjection()

Commercetools\Api\Client\Resource\ByProjectKeyProductProjectionsKeyByKeyGet::withStoreProjection (   $storeProjection)

@psalm-param scalar|scalar[] $storeProjection

Definition at line 209 of file ByProjectKeyProductProjectionsKeyByKeyGet.php.


The documentation for this class was generated from the following file: