mirror of
https://github.com/SociallyDev/Spaces-API.git
synced 2025-08-20 05:13:42 -07:00
spaces.php
This commit is contained in:
parent
7755490b81
commit
eefa32741e
845 changed files with 50409 additions and 0 deletions
54
aws/Aws/ResultInterface.php
Normal file
54
aws/Aws/ResultInterface.php
Normal file
|
@ -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);
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue