src/Command.php
/**
     * Register a migrator
     *
     * @param Migrator $migrator
     */
Register a migrator
@param Migrator $migrator
Register a migrator @param Migrator $migrator
public static function register($migrator)
    {
        $slug = strtolower($migrator->getSlug());
        if (isset(self::$migrators[$slug])) {
            WP_CLI::warning(sprintf('%s has already been registered. Overriding!', $slug));
        }
        self::$migrators[$slug] = $migrator;
    }
public static function register ( $ migrator ) { $ slug = strtolower ( $ migrator -> getSlug ( ) ) ; if ( isset ( self :: $ migrators [ $ slug ] ) ) { WP_CLI :: warning ( sprintf ( '%s has already been registered. Overriding!' , $ slug ) ) ; } self :: $ migrators [ $ slug ] = $ migrator ; }
Register a migrator
 @param Migrator $migrator
Register a migrator @param Migrator $migrator