Conditions | 1 |
Paths | 1 |
Total Lines | 12 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
23 | public function render() |
||
24 | { |
||
25 | $response = json_encode(array( |
||
26 | 'success' => $this->isSuccessful(), |
||
27 | 'message' => $this->getMessage(), |
||
28 | 'data' => $this->getData(), |
||
29 | ), JSON_PRETTY_PRINT); |
||
30 | |||
31 | $signature = hash_hmac(Client::SIGNATURE_ALGORITHM, $response, $this->secret); |
||
32 | |||
33 | $this->send($signature, $response); |
||
34 | } |
||
35 | |||
71 |