protected function processToken($token)
    {
        switch ($token) {
            case ')':
                $this->processTokenClosingParenthesis();
                break;
            case '(':
                $this->processTokenOpeningParenthesis();
                break;
            case self::LOGICAL_OR:
            case self::LOGICAL_AND:
                $this->processTokenLogicalOperator($token);
                break;
            default:
                $this->processTokenCondition($token);
                break;
        }

        return $this;
    }
protected function processToken($token)
    {
        switch ($token) {
            case ')':
                $this->processTokenClosingParenthesis();
                break;
            case '(':
                $this->processTokenOpeningParenthesis();
                break;
            case self::LOGICAL_OR:
            case self::LOGICAL_AND:
                $this->processTokenLogicalOperator($token);
                break;
            default:
                $this->processTokenCondition($token);
                break;
        }

        return $this;
    }
protected function processToken ( $ token ) { switch ( $ token ) { case ')' : $ this -> processTokenClosingParenthesis ( ) ; break ; case '(' : $ this -> processTokenOpeningParenthesis ( ) ; break ; case self :: LOGICAL_OR : case self :: LOGICAL_AND : $ this -> processTokenLogicalOperator ( $ token ) ; break ; default : $ this -> processTokenCondition ( $ token ) ; break ; } return $ this ; }
Will process a given token, which should be in the list of know tokens.

@param string $token
@return $this
Will process a given token which should be in the list of know tokens .