diff options
author | Andrew Dolgov <[email protected]> | 2022-11-23 21:14:33 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2022-11-23 21:14:33 +0300 |
commit | 0c8af4992cb0f7589dcafaad65ada12753c64594 (patch) | |
tree | 18e83d068c3e7dd2499331de977782b382279396 /vendor/aws/aws-sdk-php/src/ResultInterface.php |
initial
Diffstat (limited to 'vendor/aws/aws-sdk-php/src/ResultInterface.php')
-rw-r--r-- | vendor/aws/aws-sdk-php/src/ResultInterface.php | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/vendor/aws/aws-sdk-php/src/ResultInterface.php b/vendor/aws/aws-sdk-php/src/ResultInterface.php new file mode 100644 index 0000000..18a166a --- /dev/null +++ b/vendor/aws/aws-sdk-php/src/ResultInterface.php @@ -0,0 +1,54 @@ +<?php +namespace Aws; + +/** + * Represents an AWS result object that is returned from executing an operation. + */ +interface ResultInterface extends \ArrayAccess, \IteratorAggregate, \Countable +{ + /** + * Provides debug information about the result object + * + * @return string + */ + public function __toString(); + + /** + * Convert the result to an array. + * + * @return array + */ + public function toArray(); + + /** + * Check if the model contains a key by name + * + * @param string $name Name of the key to retrieve + * + * @return bool + */ + public function hasKey($name); + + /** + * Get a specific key value from the result model. + * + * @param string $key Key to retrieve. + * + * @return mixed|null Value of the key or NULL if not found. + */ + public function get($key); + + /** + * Returns the result of executing a JMESPath expression on the contents + * of the Result model. + * + * $result = $client->execute($command); + * $jpResult = $result->search('foo.*.bar[?baz > `10`]'); + * + * @param string $expression JMESPath expression to execute + * + * @return mixed Returns the result of the JMESPath expression. + * @link http://jmespath.readthedocs.org/en/latest/ JMESPath documentation + */ + public function search($expression); +}; |