Ejemplo n.º 1
0
 /**
  * 
  * @param FileSyncKey $key
  * @return FileSync
  */
 public static function createForFileSyncKey(FileSyncKey $key)
 {
     $file_sync = new FileSync();
     $file_sync->setObjectId($key->object_id);
     $file_sync->setObjectType($key->object_type);
     $file_sync->setObjectSubType($key->object_sub_type);
     $file_sync->setVersion($key->version);
     if ($key->partner_id) {
         $file_sync->setPartnerId($key->partner_id);
     }
     return $file_sync;
 }