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\ByProjectKeyProductsByIDImagesPost Class Reference
Inheritance diagram for Commercetools\Api\Client\Resource\ByProjectKeyProductsByIDImagesPost:
Commercetools\Client\ApiRequest Commercetools\Client\ApiRequestInterface

Public Member Functions

 __construct (string $projectKey, string $ID, UploadedFileInterface $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)
 
 withFilename ($filename)
 
 withVariant ($variant)
 
 withSku ($sku)
 
 withStaged ($staged)
 
- 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 ()
 

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

Definition at line 33 of file ByProjectKeyProductsByIDImagesPost.php.

Constructor & Destructor Documentation

◆ __construct()

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

Definition at line 39 of file ByProjectKeyProductsByIDImagesPost.php.

Member Function Documentation

◆ execute()

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

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

Returns
null|T|JsonObject|Product

Definition at line 83 of file ByProjectKeyProductsByIDImagesPost.php.

◆ executeAsync()

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

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

Returns
PromiseInterface

Definition at line 106 of file ByProjectKeyProductsByIDImagesPost.php.

◆ mapFromResponse()

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

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

Returns
JsonObject|Product|T|null

Definition at line 56 of file ByProjectKeyProductsByIDImagesPost.php.

◆ withFilename()

Commercetools\Api\Client\Resource\ByProjectKeyProductsByIDImagesPost::withFilename (   $filename)

@psalm-param scalar|scalar[] $filename

Definition at line 129 of file ByProjectKeyProductsByIDImagesPost.php.

◆ withSku()

Commercetools\Api\Client\Resource\ByProjectKeyProductsByIDImagesPost::withSku (   $sku)

@psalm-param scalar|scalar[] $sku

Definition at line 147 of file ByProjectKeyProductsByIDImagesPost.php.

◆ withStaged()

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

@psalm-param scalar|scalar[] $staged

Definition at line 156 of file ByProjectKeyProductsByIDImagesPost.php.

◆ withVariant()

Commercetools\Api\Client\Resource\ByProjectKeyProductsByIDImagesPost::withVariant (   $variant)

@psalm-param scalar|scalar[] $variant

Definition at line 138 of file ByProjectKeyProductsByIDImagesPost.php.


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