1
0
mirror of https://github.com/guzzle/guzzle.git synced 2025-02-25 02:22:57 +01:00

[Service] Allowing the result of a command to be changed. pt 2.

This commit is contained in:
Michael Dowling 2012-05-24 13:08:33 -07:00
parent 7cfd7e765b
commit 82c1b2ac57
2 changed files with 23 additions and 0 deletions

View File

@ -275,6 +275,20 @@ abstract class AbstractCommand extends Collection implements CommandInterface
return $this->result;
}
/**
* Set the result of the command
*
* @param mixed $result Result to set
*
* @return self
*/
public function setResult($result)
{
$this->result = $result;
return $this;
}
/**
* Returns TRUE if the command has been prepared for executing
*

View File

@ -100,6 +100,15 @@ interface CommandInterface
*/
function getResult();
/**
* Set the result of the command
*
* @param mixed $result Result to set
*
* @return self
*/
function setResult($result);
/**
* Returns TRUE if the command has been prepared for executing
*