public function __get($strText) { switch ($strText) { case "ImageUrl": return $this->strImageUrl; case "AltText": return $this->strAltText; default: try { return parent::__get($strText); } catch (\QCallerException $objExc) { $objExc->IncrementOffset(); throw $objExc; } } }