public function hasColumn($column, $caseInsensitive = false)
    {
        if ($column instanceof Column) {
            $column = $column->getName();
        }

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

        return isset($this->columnsByName[$column]);
    }
public function hasColumn($column, $caseInsensitive = false)
    {
        if ($column instanceof Column) {
            $column = $column->getName();
        }

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

        return isset($this->columnsByName[$column]);
    }
public function hasColumn ( $ column , $ caseInsensitive = false ) { if ( $ column instanceof Column ) { $ column = $ column -> getName ( ) ; } if ( $ caseInsensitive ) { return isset ( $ this -> columnsByLowercaseName [ strtolower ( $ column ) ] ) ; } return isset ( $ this -> columnsByName [ $ column ] ) ; }
Returns whether or not the table has a column.

@param  Column|string $column          The Column object or its name
@param  boolean       $caseInsensitive Whether the check is case insensitive.
@return boolean
Returns whether or not the table has a column .