fkooman\OAuth\Client\Token::setUserId PHP Method

setUserId() public method

public setUserId ( $userId )
    public function setUserId($userId)
    {
        if (!is_string($userId) || 0 >= strlen($userId)) {
            throw new TokenException('client_config_id needs to be a non-empty string');
        }
        $this->userId = $userId;
    }