private function isResultVariable($variable, $variableClassUri)
    {
        $responseVariableClass = \taoResultServer_models_classes_ResponseVariable::class;
        $outcomeVariableClass = \taoResultServer_models_classes_OutcomeVariable::class;
        $class = isset($variable->class) ? $variable->class : get_class($variable->variable);

        return (null != $variable->item ||  null != $variable->test)
            && (
                $class == $outcomeVariableClass
                && $variableClassUri == $outcomeVariableClass
            ) || (
                $class == $responseVariableClass
                && $variableClassUri == $responseVariableClass
            );
    }
private function isResultVariable($variable, $variableClassUri)
    {
        $responseVariableClass = \taoResultServer_models_classes_ResponseVariable::class;
        $outcomeVariableClass = \taoResultServer_models_classes_OutcomeVariable::class;
        $class = isset($variable->class) ? $variable->class : get_class($variable->variable);

        return (null != $variable->item ||  null != $variable->test)
            && (
                $class == $outcomeVariableClass
                && $variableClassUri == $outcomeVariableClass
            ) || (
                $class == $responseVariableClass
                && $variableClassUri == $responseVariableClass
            );
    }
private function isResultVariable ( $ variable , $ variableClassUri ) { $ responseVariableClass = \ taoResultServer_models_classes_ResponseVariable :: class ; $ outcomeVariableClass = \ taoResultServer_models_classes_OutcomeVariable :: class ; $ class = isset ( $ variable -> class ) ? $ variable -> class : get_class ( $ variable -> variable ) ; return ( null != $ variable -> item || null != $ variable -> test ) && ( $ class == $ outcomeVariableClass && $ variableClassUri == $ outcomeVariableClass ) || ( $ class == $ responseVariableClass && $ variableClassUri == $ responseVariableClass ) ; }
Check if provided variable is a result variable.

@param $variable
@param $variableClassUri
@return bool
Check if provided variable is a result variable .