public function toArray() { $this->validate(); return array_change_key_case($this->parameters, CASE_UPPER); }