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:
parent
7cfd7e765b
commit
82c1b2ac57
@ -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
|
||||
*
|
||||
|
@ -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
|
||||
*
|
||||
|
Loading…
x
Reference in New Issue
Block a user