You are here

class ConfigurationCRUDEvent in Configuration Management 7.3

Hierarchy

Expanded class hierarchy of ConfigurationCRUDEvent

1 file declares its use of ConfigurationCRUDEvent
ConfigurationHandler.php in src/Handlers/ConfigurationHandler.php

File

src/Events/ConfigurationCRUDEvent.php, line 10

Namespace

Configuration\Events
View source
class ConfigurationCRUDEvent extends Event {
  public $configuration;
  public function __construct(Configuration $configuration, $settings = array()) {
    $this->configuration = $configuration;
    $this->settings = new Map($settings);
  }
  public function getSetting($key) {
    if ($this->settings
      ->containsKey($key)) {
      return $this->settings
        ->get($key)
        ->get();
    }
  }
  public function setSetting($key, $value) {
    $this->settings
      ->set($key, $value);
  }

}

Members