Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 1
<?php
2
namespace Aws;
3
 
4
/**
5
 * Represents an AWS result object that is returned from executing an operation.
6
 */
7
interface ResultInterface extends \ArrayAccess, \IteratorAggregate, \Countable
8
{
9
    /**
10
     * Provides debug information about the result object
11
     *
12
     * @return string
13
     */
14
    public function __toString();
15
 
16
    /**
17
     * Convert the result to an array.
18
     *
19
     * @return array
20
     */
21
    public function toArray();
22
 
23
    /**
24
     * Check if the model contains a key by name
25
     *
26
     * @param string $name Name of the key to retrieve
27
     *
28
     * @return bool
29
     */
30
    public function hasKey($name);
31
 
32
    /**
33
     * Get a specific key value from the result model.
34
     *
35
     * @param string $key Key to retrieve.
36
     *
37
     * @return mixed|null Value of the key or NULL if not found.
38
     */
39
    public function get($key);
40
 
41
    /**
42
     * Returns the result of executing a JMESPath expression on the contents
43
     * of the Result model.
44
     *
45
     *     $result = $client->execute($command);
46
     *     $jpResult = $result->search('foo.*.bar[?baz > `10`]');
47
     *
48
     * @param string $expression JMESPath expression to execute
49
     *
50
     * @return mixed Returns the result of the JMESPath expression.
51
     * @link http://jmespath.readthedocs.org/en/latest/ JMESPath documentation
52
     */
53
    public function search($expression);
54
};