summaryrefslogtreecommitdiff
path: root/vendor/guzzle/guzzle/src/Guzzle/Common/FromConfigInterface.php
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/guzzle/guzzle/src/Guzzle/Common/FromConfigInterface.php')
-rw-r--r--vendor/guzzle/guzzle/src/Guzzle/Common/FromConfigInterface.php18
1 files changed, 18 insertions, 0 deletions
diff --git a/vendor/guzzle/guzzle/src/Guzzle/Common/FromConfigInterface.php b/vendor/guzzle/guzzle/src/Guzzle/Common/FromConfigInterface.php
new file mode 100644
index 0000000..c8b1317
--- /dev/null
+++ b/vendor/guzzle/guzzle/src/Guzzle/Common/FromConfigInterface.php
@@ -0,0 +1,18 @@
+<?php
+
+namespace Guzzle\Common;
+
+/**
+ * Interfaces that adds a factory method which is used to instantiate a class from an array of configuration options.
+ */
+interface FromConfigInterface
+{
+ /**
+ * Static factory method used to turn an array or collection of configuration data into an instantiated object.
+ *
+ * @param array|Collection $config Configuration data
+ *
+ * @return FromConfigInterface
+ */
+ public static function factory($config = array());
+}