public function getIndex($name)
    {
        if (!$this->hasIndex($name)) {
            throw SchemaException::tableIndexDoesNotExist($this->getName(), $name);
        }

        return $this->indexes[$name];
    }
public function getIndex($name)
    {
        if (!$this->hasIndex($name)) {
            throw SchemaException::tableIndexDoesNotExist($this->getName(), $name);
        }

        return $this->indexes[$name];
    }
public function getIndex ( $ name ) { if ( ! $ this -> hasIndex ( $ name ) ) { throw SchemaException :: tableIndexDoesNotExist ( $ this -> getName ( ) , $ name ) ; } return $ this -> indexes [ $ name ] ; }
Gets a table index.

@param string $name The table index name.

@throws \Fridge\DBAL\Exception\SchemaException If the index does not exist.

@return \Fridge\DBAL\Schema\Index The table index.
Gets a table index .