private function getClientNonce(): ?string
    {
        if (null == $this->clientNonce) {
            $this->clientNonce = uniqid();

            if (null == $this->nonceCount) {
                // If nonceCount is not set then set it to 00000001.
                $this->nonceCount = '00000001';
            } else {
                // If it is set then increment it.
                ++$this->nonceCount;
                // Ensure nonceCount is zero-padded at the start of the string to a length of 8
                while (\strlen($this->nonceCount) < 8) {
                    $this->nonceCount = '0'.$this->nonceCount;
                }
            }
        }

        return $this->clientNonce;
    }
private function getClientNonce(): ?string
    {
        if (null == $this->clientNonce) {
            $this->clientNonce = uniqid();

            if (null == $this->nonceCount) {
                // If nonceCount is not set then set it to 00000001.
                $this->nonceCount = '00000001';
            } else {
                // If it is set then increment it.
                ++$this->nonceCount;
                // Ensure nonceCount is zero-padded at the start of the string to a length of 8
                while (\strlen($this->nonceCount) < 8) {
                    $this->nonceCount = '0'.$this->nonceCount;
                }
            }
        }

        return $this->clientNonce;
    }
private function getClientNonce ( ) : ? string { if ( null == $ this -> clientNonce ) { $ this -> clientNonce = uniqid ( ) ; if ( null == $ this -> nonceCount ) { // If nonceCount is not set then set it to 00000001. $ this -> nonceCount = '00000001' ; } else { // If it is set then increment it. ++ $ this -> nonceCount ; // Ensure nonceCount is zero-padded at the start of the string to a length of 8 while ( \ strlen ( $ this -> nonceCount ) < 8 ) { $ this -> nonceCount = '0' . $ this -> nonceCount ; } } } return $ this -> clientNonce ; }
Returns either the current value of clientNonce or generates a new value if clientNonce is null.
Also increments nonceCount.

@return string Returns either the current value of clientNonce the newly generated clientNonce;
Returns either the current value of clientNonce or generates a new value if clientNonce is null . Also increments nonceCount .