src/Entity/SessionEntity.php
public function setOwner($type, $id)
    {
        $this->ownerType = $type;
        $this->ownerId = $id;

        $this->server->getEventEmitter()->emit(new SessionOwnerEvent($this));

        return $this;
    }
public function setOwner($type, $id)
    {
        $this->ownerType = $type;
        $this->ownerId = $id;

        $this->server->getEventEmitter()->emit(new SessionOwnerEvent($this));

        return $this;
    }
public function setOwner ( $ type , $ id ) { $ this -> ownerType = $ type ; $ this -> ownerId = $ id ; $ this -> server -> getEventEmitter ( ) -> emit ( new SessionOwnerEvent ( $ this ) ) ; return $ this ; }
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
Set the session owner