public function __get($strKey) { switch ($strKey) { case 'name': return $this->strCaptchaKey; break; case 'question': return $this->strQuestion; break; default: return parent::__get($strKey); break; } }