GDS\Gateway\ProtoBuf::setupCommit PHP Method

setupCommit() private method

Set up a commit request
private setupCommit ( ) : google\appengine\datastore\v4\CommitRequest
return google\appengine\datastore\v4\CommitRequest
    private function setupCommit()
    {
        $obj_commit_request = new CommitRequest();
        if (null === $this->str_next_transaction) {
            $obj_commit_request->setMode(Mode::NON_TRANSACTIONAL);
        } else {
            $obj_commit_request->setMode(Mode::TRANSACTIONAL);
            $this->applyTransaction($obj_commit_request);
        }
        return $obj_commit_request;
    }