original_string: public function setOwner($type, $id)
      {
          $this->ownerType = $type;
          $this->ownerId = $id;
  
          $this->server->getEventEmitter()->emit(new SessionOwnerEvent($this));
  
          return $this;
      }
code: public function setOwner($type, $id)
      {
          $this->ownerType = $type;
          $this->ownerId = $id;
  
          $this->server->getEventEmitter()->emit(new SessionOwnerEvent($this));
  
          return $this;
      }
code_tokens: public function setOwner ( $ type , $ id ) { $ this -> ownerType = $ type ; $ this -> ownerId = $ id ; $ this -> server -> getEventEmitter ( ) -> emit ( new SessionOwnerEvent ( $ this ) ) ; return $ this ; }
docstring: Set the session owner
  
  @param string $type The type of the owner (e.g. user, app)
  @param string $id   The identifier of the owner
  
  @return self
docstring_tokens: Set the session owner