/**
  * Validates the version is a LinkedVersion and returns the class name of its migration
  *
  * @param VersionInterface $version
  *
  * @return string
  *
  * @throws InvalidArgumentException
  */
 protected final function getMigrationClass(VersionInterface $version)
 {
     if (!$version instanceof LinkedVersionInterface) {
         throw new InvalidArgumentException(sprintf("Expected version %s to be linked to a migration", $version->getId()));
     }
     return get_class($version->getMigration());
 }