| 1 |
<?php |
| 2 |
|
| 3 |
namespace Dudlewebs\WPMCS\s3\Aws; |
| 4 |
|
| 5 |
/** |
| 6 |
* A command object encapsulates the input parameters used to control the |
| 7 |
* creation of a HTTP request and processing of a HTTP response. |
| 8 |
* |
| 9 |
* Using the toArray() method will return the input parameters of the command |
| 10 |
* as an associative array. |
| 11 |
*/ |
| 12 |
interface CommandInterface extends \ArrayAccess, \Countable, \IteratorAggregate |
| 13 |
{ |
| 14 |
/** |
| 15 |
* Converts the command parameters to an array |
| 16 |
* |
| 17 |
* @return array |
| 18 |
*/ |
| 19 |
public function toArray(); |
| 20 |
/** |
| 21 |
* Get the name of the command |
| 22 |
* |
| 23 |
* @return string |
| 24 |
*/ |
| 25 |
public function getName(); |
| 26 |
/** |
| 27 |
* Check if the command has a parameter by name. |
| 28 |
* |
| 29 |
* @param string $name Name of the parameter to check |
| 30 |
* |
| 31 |
* @return bool |
| 32 |
*/ |
| 33 |
public function hasParam($name); |
| 34 |
/** |
| 35 |
* Get the handler list used to transfer the command. |
| 36 |
* |
| 37 |
* @return HandlerList |
| 38 |
*/ |
| 39 |
public function getHandlerList(); |
| 40 |
} |
| 41 |
|