public function getColumn($name, $caseInsensitive = false)
    {
        if (!$this->hasColumn($name, $caseInsensitive)) {
            return null; // just to be explicit
        }

        if ($caseInsensitive) {
            return $this->columnsByLowercaseName[strtolower($name)];
        }

        return $this->columnsByName[$name];
    }
public function getColumn($name, $caseInsensitive = false)
    {
        if (!$this->hasColumn($name, $caseInsensitive)) {
            return null; // just to be explicit
        }

        if ($caseInsensitive) {
            return $this->columnsByLowercaseName[strtolower($name)];
        }

        return $this->columnsByName[$name];
    }
public function getColumn ( $ name , $ caseInsensitive = false ) { if ( ! $ this -> hasColumn ( $ name , $ caseInsensitive ) ) { return null ; // just to be explicit } if ( $ caseInsensitive ) { return $ this -> columnsByLowercaseName [ strtolower ( $ name ) ] ; } return $ this -> columnsByName [ $ name ] ; }
Returns the Column object with the specified name.

@param  string  $name            The name of the column (e.g. 'my_column')
@param  boolean $caseInsensitive Whether the check is case insensitive.
@return Column
Returns the Column object with the specified name .