public function getVariableLocal($name)
    {
        $vars = $this->getScope()->variables;
        
        if (array_key_exists($name, $vars)) {
            return $vars[$name];
        }
        
        if (func_num_args() > 1) {
            return func_get_arg(1);
        }
        
        throw new \OutOfBoundsException(sprintf('Variable "%s" not found in scope %s', $name, $this));
    }
public function getVariableLocal($name)
    {
        $vars = $this->getScope()->variables;
        
        if (array_key_exists($name, $vars)) {
            return $vars[$name];
        }
        
        if (func_num_args() > 1) {
            return func_get_arg(1);
        }
        
        throw new \OutOfBoundsException(sprintf('Variable "%s" not found in scope %s', $name, $this));
    }
public function getVariableLocal ( $ name ) { $ vars = $ this -> getScope ( ) -> variables ; if ( array_key_exists ( $ name , $ vars ) ) { return $ vars [ $ name ] ; } if ( func_num_args ( ) > 1 ) { return func_get_arg ( 1 ) ; } throw new \ OutOfBoundsException ( sprintf ( 'Variable "%s" not found in scope %s' , $ name , $ this ) ) ; }
Get the value of the given variable in the current scope.

@param string $name
@param mixed $default
@return mixed

@throws \OutOfBoundsException When the variable is not set and no default value is given.
Get the value of the given variable in the current scope .