FromConfigInterface.php 487 B

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