public function __set($strText, $mixValue) { switch ($strText) { case "ImageUrl": try { $this->strImageUrl = \QType::Cast($mixValue, \QType::String); break; } catch (\QInvalidCastException $objExc) { $objExc->IncrementOffset(); throw $objExc; } case "AltText": try { $this->strAltText = \QType::Cast($mixValue, \QType::String); break; } catch (\QInvalidCastException $objExc) { $objExc->IncrementOffset(); throw $objExc; } default: try { parent::__set($strText, $mixValue); } catch (\QCallerException $objExc) { $objExc->IncrementOffset(); throw $objExc; } break; } }