public static function AlterSoapComplexTypeArray(&$strComplexTypeArray) { if (!array_key_exists('UsState', $strComplexTypeArray)) { $strComplexTypeArray['UsState'] = UsState::GetSoapComplexTypeXml(); } }