| Conditions | 1 |
| Paths | 1 |
| Total Lines | 20 |
| Code Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 28 | public function getResponse() : Response\Account\Get { |
||
| 29 | |||
| 30 | $payload = [ |
||
| 31 | 'onlyReturnExisting' => true, |
||
| 32 | ]; |
||
| 33 | |||
| 34 | $jwk = Utilities\RequestSigner::JWKString( |
||
| 35 | $payload, |
||
| 36 | Cache\DirectoryResponse::getInstance()->get()->getNewAccount(), |
||
|
|
|||
| 37 | Cache\NewNonceResponse::getInstance()->get()->getNonce(), |
||
| 38 | $this->_account->getKeyDirectoryPath() |
||
| 39 | ); |
||
| 40 | |||
| 41 | $result = Connector\Connector::getInstance()->request( |
||
| 42 | Connector\Connector::METHOD_POST, |
||
| 43 | Cache\DirectoryResponse::getInstance()->get()->getNewAccount(), |
||
| 44 | $jwk |
||
| 45 | ); |
||
| 46 | |||
| 47 | return new Response\Account\Get($result); |
||
| 48 | } |
||
| 49 | } |