Passed
Push — master ( e7e3c4...d0e289 )
by Rogier
01:26
created

Nonce   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 5
dl 0
loc 9
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A getNew() 0 7 1
1
<?php
2
3
namespace Rogierw\RwAcme\Endpoints;
4
5
class Nonce extends Endpoint
6
{
7
    public function getNew()
8
    {
9
        $response = $this->client
10
            ->getHttpClient()
11
            ->head($this->client->directory()->newNonce());
12
13
        return trim($response->getRawHeaders()['Replay-Nonce']);
14
    }
15
}
16