$sharedData
$sharedData : array
Class MultiCallOperation. Represents a sequence of iterations for the same request type.
$requests : \MerchantAPI\Collection
__construct( $request = null, array $sharedData = array())
MultiCallOperation constructor.
$request | ||
array | $sharedData |
getSharedData() : array
Get the shared data.
Warning: count(): Parameter must be an array or an object that implements Countable in phar:///Users/gidriss/miva/tools/api-sdk/sdk-tools/phpDocumentor.phar/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1293 Warning: count(): Parameter must be an array or an object that implements Countable in phar:///Users/gidriss/miva/tools/api-sdk/sdk-tools/phpDocumentor.phar/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1293addSharedData( $field, $value) : $this
Add data to be shared with all iterations.
$field | ||
$value |
setSharedData(array $data) : $this
Set and overwrite the shared data.
array | $data |
getRequests() : \MerchantAPI\Collection
Get all request iterations.
Warning: count(): Parameter must be an array or an object that implements Countable in phar:///Users/gidriss/miva/tools/api-sdk/sdk-tools/phpDocumentor.phar/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1293 Warning: count(): Parameter must be an array or an object that implements Countable in phar:///Users/gidriss/miva/tools/api-sdk/sdk-tools/phpDocumentor.phar/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1293addRequest(\MerchantAPI\RequestInterface $request) : $this
Add a request iteration.
\MerchantAPI\RequestInterface | $request |
addRequests(array<mixed,\MerchantAPI\RequestInterface> $requests) : $this
Add an array of requests.
array<mixed,\MerchantAPI\RequestInterface> | $requests |
setRequests(array<mixed,\MerchantAPI\RequestInterface> $requests) : $this
array<mixed,\MerchantAPI\RequestInterface> | $requests |
toArray() : array
Reduce the operation to an array.
Warning: count(): Parameter must be an array or an object that implements Countable in phar:///Users/gidriss/miva/tools/api-sdk/sdk-tools/phpDocumentor.phar/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1293 Warning: count(): Parameter must be an array or an object that implements Countable in phar:///Users/gidriss/miva/tools/api-sdk/sdk-tools/phpDocumentor.phar/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1293