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; }