private function whereObject($object, $column, $operator, $value = null, $inverse = false)
    {
        // Remove the object is the column does not exits.
        // Only do this if we aren't looking for null
        if (! $object->$column && $operator != 'null') {
            return true;
        }

        $method = 'getWhere' . ucfirst($operator);

        if (method_exists($this, $method)) {
            return $this->{$method}($object, $column, $value, $inverse);
        }

        return $this->getWhereDefault($object, $column, $value, $inverse);
    }
private function whereObject($object, $column, $operator, $value = null, $inverse = false)
    {
        // Remove the object is the column does not exits.
        // Only do this if we aren't looking for null
        if (! $object->$column && $operator != 'null') {
            return true;
        }

        $method = 'getWhere' . ucfirst($operator);

        if (method_exists($this, $method)) {
            return $this->{$method}($object, $column, $value, $inverse);
        }

        return $this->getWhereDefault($object, $column, $value, $inverse);
    }
private function whereObject ( $ object , $ column , $ operator , $ value = null , $ inverse = false ) { // Remove the object is the column does not exits. // Only do this if we aren't looking for null if ( ! $ object -> $ column && $ operator != 'null' ) { return true ; } $ method = 'getWhere' . ucfirst ( $ operator ) ; if ( method_exists ( $ this , $ method ) ) { return $ this -> { $ method } ( $ object , $ column , $ value , $ inverse ) ; } return $ this -> getWhereDefault ( $ object , $ column , $ value , $ inverse ) ; }
Compare the object and column passed with the value using the operator

@param  object  $object   The object we are searching.
@param  string  $column   The column to compare.
@param  string  $operator What type of comparison operation to perform.
@param  mixed   $value    The value to search for.
@param  boolean $inverse  Invert the results.

@return boolean              Return true if the object should be removed from the collection.
Compare the object and column passed with the value using the operator