ReaderInterface.php 699 B

1234567891011121314151617181920212223242526272829
  1. <?php
  2. /**
  3. * Zend Framework (http://framework.zend.com/)
  4. *
  5. * @link http://github.com/zendframework/zf2 for the canonical source repository
  6. * @copyright Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
  7. * @license http://framework.zend.com/license/new-bsd New BSD License
  8. */
  9. namespace Zend\Config\Reader;
  10. interface ReaderInterface
  11. {
  12. /**
  13. * Read from a file and create an array
  14. *
  15. * @param string $filename
  16. * @return array
  17. */
  18. public function fromFile($filename);
  19. /**
  20. * Read from a string and create an array
  21. *
  22. * @param string $string
  23. * @return array|bool
  24. */
  25. public function fromString($string);
  26. }