original_string: public function setScope($scope)
      {
          if (empty($scope)) {
              return $this->clearScope();
          }
  
          session()->put($this->getSessionKey(static::TYPE_SCOPE), $scope);
  
          return $this;
      }
code: public function setScope($scope)
      {
          if (empty($scope)) {
              return $this->clearScope();
          }
  
          session()->put($this->getSessionKey(static::TYPE_SCOPE), $scope);
  
          return $this;
      }
code_tokens: public function setScope ( $ scope ) { if ( empty ( $ scope ) ) { return $ this -> clearScope ( ) ; } session ( ) -> put ( $ this -> getSessionKey ( static :: TYPE_SCOPE ) , $ scope ) ; return $ this ; }
docstring: Sets active scope for the current context.
  
  @param string $scope
  @return $this
docstring_tokens: Sets active scope for the current context .