Spanner/src/ValueMapper.php
private function getColumnName($columns, $index)
    {
        return (isset($columns[$index]['name']) && $columns[$index]['name'])
            ? $columns[$index]['name']
            : $index;
    }
private function getColumnName($columns, $index)
    {
        return (isset($columns[$index]['name']) && $columns[$index]['name'])
            ? $columns[$index]['name']
            : $index;
    }
private function getColumnName ( $ columns , $ index ) { return ( isset ( $ columns [ $ index ] [ 'name' ] ) && $ columns [ $ index ] [ 'name' ] ) ? $ columns [ $ index ] [ 'name' ] : $ index ; }
Return the column name given a list of columns and a field index.

If the column name is not found, `$index` is returned.

@codingStandardsIgnoreStart
@param array $columns A list of columns. See
[ResultSetMetadata](https://cloud.google.com/spanner/docs/reference/rpc/google.spanner.v1#google.spanner.v1.ResultSetMetadata)
for expected value. Column names are optional.
@param int $index The numerical index of the column to search.
@return string|int
@codingStandardsIgnoreEnd
Return the column name given a list of columns and a field index .