public function getScopeVariables($includeBoundObject = true)
    {
        $vars = $this->context->getAll();

        if (!$includeBoundObject) {
            unset($vars['this']);
        }

        return $vars;
    }
public function getScopeVariables($includeBoundObject = true)
    {
        $vars = $this->context->getAll();

        if (!$includeBoundObject) {
            unset($vars['this']);
        }

        return $vars;
    }
public function getScopeVariables ( $ includeBoundObject = true ) { $ vars = $ this -> context -> getAll ( ) ; if ( ! $ includeBoundObject ) { unset ( $ vars [ 'this' ] ) ; } return $ vars ; }
Return the set of variables currently in scope.

@param bool $includeBoundObject Pass false to exclude 'this'. If you're
passing the scope variables to `extract`
in PHP 7.1+, you _must_ exclude 'this'

@return array Associative array of scope variables
Return the set of variables currently in scope .