Set question id

@param integer $questionId

@return $this
760858
private function setQuestion($questionId)
    {
        $this->session->set('question', $questionId);

        if (!is_null($this->getUserConfiguration()->getTimePerQuestion())) {
            $this->session->set('question_timeout', new \DateTime());
        }

        return $this;
    }
1287857
public function setId($id)
    {
        if (!is_null($id)) {
            $id = (string) $id;
        }

        $this->id = $id;
        return $this;
    }
1009848
public function setId(?int $id): User
    {
        Assert::greaterThan($id, 0);

        $this->id = $id;

        return $this;
    }
154151
public function setHelpid($helpId)
    {
        $this->addToJson(static::META_HELP, $this->pool->messages->getHelp($helpId));
        return $this;
    }
459490
public function setDocumentId($documentId)
    {
        if (preg_match($this->getDocumentIdRegex(), $documentId)) {
            $this->document_id = $documentId;

            return $this;
        }

        throw new InvalidArgument(
            'document_id must be a string with 10 alphanumeric letters.' .
                     '5 letters, followed by 4 numbers, followed by 1 letter or number. Example: ABCDE1234F'
        );
    }
1298171
public static function make_question($questiondata) {
        return self::get_qtype($questiondata->qtype, false)->make_question($questiondata, false);
    }
359326
public function setLabelId($labelId)
    {

        if (!is_null($labelId) && ($labelId < 0)) {
            throw new \InvalidArgumentException('invalid value for $labelId when calling GetCharactersCharacterIdMailLabelsLabel., must be bigger than or equal to 0.');
        }

        $this->container['labelId'] = $labelId;

        return $this;
    }
1276723
public function setId($id)
    {
        $this->id = (integer)$id;
        $this->hasId = true;

        return $this;
    }
372541
public function show($id)
    {
        $question = $this->client->get(
            sprintf('buckets/%d/questions/%d.json', $this->bucket, $id)
        );

        return new Question($this->response($question));
    }
813815
public function addStopId($stopId)
    {
        $stopIds = $this->getStopIds();

        if (!in_array($stopId, $stopIds)) {
            $stopIds[] = $stopId;
            $this->setStopIds($stopIds);
        }

        return $this;
    }
1043561
public function answerQuestion($questionId, $message)
    {
        /** @var QuestionsHandler $handler */
        $handler = $this->requestHandler();
        return $handler->answerQuestion($questionId, $message);
    }
630709
public function setSubdomainId( $id )
    {
        $this->subdomainId  = empty( $id ) ? null : (int) $id;
        $this->_uriCache    = null;
        return $this;
    }
518959
public function setId(string $id = null): ButtonInterface
    {
        if ($this->isVisibility()) {
            $this->id = $id;
        }

        return $this;
    }
141695
public function setSessionId($sessionId)
    {
        $this->set(self::MAUTIC_SESSION_ID, $sessionId);
        $this->set(self::MTC_SID, $sessionId);

        return $this;
    }
252111
public function setModelId($modelId)
    {
        $this->modelId = (string)$modelId;
        $this->model   = null;
        return $this;
    }
711200
public function setId(int $id): Chat
    {
        Assert::greaterThan($id, 0);

        $this->id = $id;

        return $this;
    }
912881
public function command($commandId)
    {
        $this->getLogger()->info('Sending predefined Command to display Group ID ' . $this->displayGroupId);
        $this->doPost('/displaygroup/' . $this->displayGroupId . '/action/command', [
            'commandId' => $commandId,
        ]);

        return $this;
    }