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