diff options
Diffstat (limited to 'vendor/guzzle/guzzle/src/Guzzle/Service/Command/CreateResponseClassEvent.php')
-rw-r--r-- | vendor/guzzle/guzzle/src/Guzzle/Service/Command/CreateResponseClassEvent.php | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/vendor/guzzle/guzzle/src/Guzzle/Service/Command/CreateResponseClassEvent.php b/vendor/guzzle/guzzle/src/Guzzle/Service/Command/CreateResponseClassEvent.php new file mode 100644 index 0000000..e050678 --- /dev/null +++ b/vendor/guzzle/guzzle/src/Guzzle/Service/Command/CreateResponseClassEvent.php @@ -0,0 +1,32 @@ +<?php + +namespace Guzzle\Service\Command; + +use Guzzle\Common\Event; + +/** + * Event class emitted with the operation.parse_class event + */ +class CreateResponseClassEvent extends Event +{ + /** + * Set the result of the object creation + * + * @param mixed $result Result value to set + */ + public function setResult($result) + { + $this['result'] = $result; + $this->stopPropagation(); + } + + /** + * Get the created object + * + * @return mixed + */ + public function getResult() + { + return $this['result']; + } +} |