Conditions | 2 |
Paths | 2 |
Total Lines | 12 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 6 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
24 | public function get() : Response\GetNewNonce { |
||
25 | |||
26 | if(array_key_exists($this->_index, $this->_responses)) { |
||
27 | return $this->_responses[$this->_index]; |
||
28 | } |
||
29 | $this->_responses[$this->_index] = null; |
||
30 | |||
31 | $request = new Request\GetNewNonce(); |
||
32 | $response = $request->getResponse(); |
||
33 | $this->set($response); |
||
34 | |||
35 | return $response; |
||
36 | } |
||
41 | } |