Writer.php 708 B

1234567891011121314151617181920212223242526272829
  1. <?php
  2. /**
  3. * Interface for config writers
  4. *
  5. * Specifies the methods that a config writer must implement
  6. *
  7. * @package KO7
  8. * ohana Team
  9. * @copyright (c) 2007-2016 Kohana Team
  10. * @copyright (c) since 2016 Koseven Team
  11. * @license https://koseven.dev/LICENSE
  12. */
  13. interface KO7_Config_Writer extends KO7_Config_Source
  14. {
  15. /**
  16. * Writes the passed config for $group
  17. *
  18. * Returns chainable instance on success or throws
  19. * KO7_Config_Exception on failure
  20. *
  21. * @param string $group The config group
  22. * @param string $key The config key to write to
  23. * @param array $config The configuration to write
  24. * @return boolean
  25. */
  26. public function write($group, $key, $config);
  27. }