public static function GetObjectFromSoapObject($objSoapObject)
 {
     $objToReturn = new PackageVersion();
     if (property_exists($objSoapObject, 'Id')) {
         $objToReturn->intId = $objSoapObject->Id;
     }
     if (property_exists($objSoapObject, 'PackageContribution') && $objSoapObject->PackageContribution) {
         $objToReturn->PackageContribution = PackageContribution::GetObjectFromSoapObject($objSoapObject->PackageContribution);
     }
     if (property_exists($objSoapObject, 'VersionNumber')) {
         $objToReturn->intVersionNumber = $objSoapObject->VersionNumber;
     }
     if (property_exists($objSoapObject, 'Notes')) {
         $objToReturn->strNotes = $objSoapObject->Notes;
     }
     if (property_exists($objSoapObject, 'QcodoVersion')) {
         $objToReturn->strQcodoVersion = $objSoapObject->QcodoVersion;
     }
     if (property_exists($objSoapObject, 'NewFileCount')) {
         $objToReturn->intNewFileCount = $objSoapObject->NewFileCount;
     }
     if (property_exists($objSoapObject, 'ChangedFileCount')) {
         $objToReturn->intChangedFileCount = $objSoapObject->ChangedFileCount;
     }
     if (property_exists($objSoapObject, 'PostDate')) {
         $objToReturn->dttPostDate = new QDateTime($objSoapObject->PostDate);
     }
     if (property_exists($objSoapObject, 'DownloadCount')) {
         $objToReturn->intDownloadCount = $objSoapObject->DownloadCount;
     }
     if (property_exists($objSoapObject, '__blnRestored')) {
         $objToReturn->__blnRestored = $objSoapObject->__blnRestored;
     }
     return $objToReturn;
 }
 public static function GetArrayFromSoapArray($objSoapArray)
 {
     $objArrayToReturn = array();
     foreach ($objSoapArray as $objSoapObject) {
         array_push($objArrayToReturn, PackageContribution::GetObjectFromSoapObject($objSoapObject));
     }
     return $objArrayToReturn;
 }