1: <?php
2:
3: namespace Guzzle\Common;
4:
5: /**
6: * Interfaces that adds a factory method which is used to instantiate a class from an array of configuration options.
7: */
8: interface FromConfigInterface
9: {
10: /**
11: * Static factory method used to turn an array or collection of configuration data into an instantiated object.
12: *
13: * @param array|Collection $config Configuration data
14: *
15: * @return FromConfigInterface
16: */
17: public static function factory($config = array());
18: }
19: