protected function getValue($key) { if (array_key_exists($key, $this->data)) { return $this->data[$key]; } throw new AccessException('Could not get the value for the key "' . $key . '".'); }