ConfigurationSetterInterface.php 579 B

12345678910111213141516171819
  1. <?php
  2. interface Minz_ConfigurationSetterInterface {
  3. /**
  4. * Return whether the given key is supported by this setter.
  5. * @param string $key the key to test.
  6. * @return bool true if the key is supported, false otherwise.
  7. */
  8. public function support(string $key): bool;
  9. /**
  10. * Set the given key in data with the current value.
  11. * @param array<string,mixed> $data an array containing the list of all configuration data.
  12. * @param string $key the key to update.
  13. * @param mixed $value the value to set.
  14. */
  15. public function handle(&$data, string $key, $value): void;
  16. }