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