public function set($key, $value) { if ($this->validate($key, $value)) { $this->options[$key] = $value; } }