Conditions | 1 |
Paths | 1 |
Total Lines | 17 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 2 |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
31 | public function getResponse() : Response\Order\Get { |
||
32 | |||
33 | $kid = Utilities\RequestSigner::KID( |
||
34 | null, |
||
35 | Cache\AccountResponse::getInstance()->get($this->_order->getAccount())->getLocation(), |
||
|
|||
36 | $this->location, |
||
37 | Cache\NewNonceResponse::getInstance()->get()->getNonce(), |
||
38 | $this->_order->getAccount()->getKeyDirectoryPath() |
||
39 | ); |
||
40 | |||
41 | $result = Connector\Connector::getInstance()->request( |
||
42 | Connector\Connector::METHOD_POST, |
||
43 | $this->location, |
||
44 | $kid |
||
45 | ); |
||
46 | |||
47 | return new Response\Order\Get($result, $this->location); |
||
48 | } |
||
49 | } |