summaryrefslogtreecommitdiff
path: root/vendor/guzzle/guzzle/src/Guzzle/Service/Command/ResponseClassInterface.php
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/guzzle/guzzle/src/Guzzle/Service/Command/ResponseClassInterface.php')
-rw-r--r--vendor/guzzle/guzzle/src/Guzzle/Service/Command/ResponseClassInterface.php18
1 files changed, 18 insertions, 0 deletions
diff --git a/vendor/guzzle/guzzle/src/Guzzle/Service/Command/ResponseClassInterface.php b/vendor/guzzle/guzzle/src/Guzzle/Service/Command/ResponseClassInterface.php
new file mode 100644
index 0000000..325dd08
--- /dev/null
+++ b/vendor/guzzle/guzzle/src/Guzzle/Service/Command/ResponseClassInterface.php
@@ -0,0 +1,18 @@
+<?php
+
+namespace Guzzle\Service\Command;
+
+/**
+ * Interface used to accept a completed OperationCommand and parse the result into a specific response type
+ */
+interface ResponseClassInterface
+{
+ /**
+ * Create a response model object from a completed command
+ *
+ * @param OperationCommand $command That serialized the request
+ *
+ * @return self
+ */
+ public static function fromCommand(OperationCommand $command);
+}