protected function migrationToClassName( $migrationName )
    {
        $class = str_replace('_', ' ', $migrationName);
        $class = ucwords($class);
        $class = str_replace(' ', '', $class);

        if (!$this->isValidClassName($class)) {
            throw new \InvalidArgumentException(sprintf(
                'Migration class "%s" is invalid',
                $class
            ));
        }

        return $class;
    }