/var/www/vhosts/ihelp.ro/_OLD/vendor/robmorgan/phinx/src/Phinx/Db/Action
Edit: /var/www/vhosts/ihelp.ro/_OLD/vendor/robmorgan/phinx/src/Phinx/Db/Action/DropIndex.php (1779B)
index = $index;
}
/**
* Creates a new DropIndex object after assembling the passed
* arguments.
*
* @param \Phinx\Db\Table\Table $table The table where the index is
* @param string[] $columns the indexed columns
*
* @return \Phinx\Db\Action\DropIndex
*/
public static function build(Table $table, array $columns = [])
{
$index = new Index();
$index->setColumns($columns);
return new static($table, $index);
}
/**
* Creates a new DropIndex when the name of the index to drop
* is known.
*
* @param \Phinx\Db\Table\Table $table The table where the index is
* @param string $name The name of the index
*
* @return \Phinx\Db\Action\DropIndex
*/
public static function buildFromName(Table $table, $name)
{
$index = new Index();
$index->setName($name);
return new static($table, $index);
}
/**
* Returns the index to be dropped
*
* @return \Phinx\Db\Table\Index
*/
public function getIndex()
{
return $this->index;
}
}