src/Schema/State.php
public function findIndex(array $columns): ?AbstractIndex
    {
        foreach ($this->indexes as $index) {
            if ($index->getColumns() == $columns) {
                return $index;
            }
        }

        return null;
    }
public function findIndex(array $columns): ?AbstractIndex
    {
        foreach ($this->indexes as $index) {
            if ($index->getColumns() == $columns) {
                return $index;
            }
        }

        return null;
    }
public function findIndex ( array $ columns ) : ? AbstractIndex { foreach ( $ this -> indexes as $ index ) { if ( $ index -> getColumns ( ) == $ columns ) { return $ index ; } } return null ; }
Find index by it's columns or return null.

@param array $columns
@return null|AbstractIndex
Find index by it s columns or return null .