public static function fromIndex(Db\Index $index)
    {
        return new self([
            'name' => $index->getName(),
            'columns' => $index->getColumns(),
            'type' => $index->getType()
        ]);
    }
public static function fromIndex(Db\Index $index)
    {
        return new self([
            'name' => $index->getName(),
            'columns' => $index->getColumns(),
            'type' => $index->getType()
        ]);
    }
public static function fromIndex ( Db \ Index $ index ) { return new self ( [ 'name' => $ index -> getName ( ) , 'columns' => $ index -> getColumns ( ) , 'type' => $ index -> getType ( ) ] ) ; }
convert from Phalcon\Db\Index object
convert from Phalcon \ Db \ Index object