src/Phinx/Db/Action/DropIndex.php
public static function buildFromName(Table $table, $name)
    {
        $index = new Index();
        $index->setName($name);

        return new static($table, $index);
    }
public static function buildFromName(Table $table, $name)
    {
        $index = new Index();
        $index->setName($name);

        return new static($table, $index);
    }
public static function buildFromName ( Table $ table , $ name ) { $ index = new Index ( ) ; $ index -> setName ( $ name ) ; return new static ( $ table , $ index ) ; }
Creates a new DropIndex when the name of the index to drop
is known.

@param Table $table The table where the index is
@param mixed $name The name of the index
@return DropIndex
Creates a new DropIndex when the name of the index to drop is known .