Lines 100.00% 2 / 2
Functions and Methods 100.00% 2 / 2
Classes and Traits 100.00% 1 / 1
Name Lines Functions and Methods CRAP Classes and Traits
WorkerProbeSequence 100.00% 2 / 2 100.00% 2 / 2 2 100.00% 1 / 1
 getCurrentNonce 100.00% 1 / 1 100.00% 1 / 1 1
 advanceNonce 100.00% 1 / 1 100.00% 1 / 1 1
1<?php
2
3declare(strict_types=1);
4
5namespace Stewart\Runtime\Broker;
6
7final class WorkerProbeSequence
8{
9    private int $nonce = 0;
10
11    public function getCurrentNonce(): int
12    {
13        return $this->nonce;
14    }
15
16    public function advanceNonce(): int
17    {
18        return ++$this->nonce;
19    }
20}