WriterInterface.php 780 B

12345678910111213141516171819202122232425262728293031
  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-2013 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\Writer;
  10. interface WriterInterface
  11. {
  12. /**
  13. * Write a config object to a file.
  14. *
  15. * @param string $filename
  16. * @param mixed $config
  17. * @param bool $exclusiveLock
  18. * @return void
  19. */
  20. public function toFile($filename, $config, $exclusiveLock = true);
  21. /**
  22. * Write a config object to a string.
  23. *
  24. * @param mixed $config
  25. * @return string
  26. */
  27. public function toString($config);
  28. }