| Conditions | 1 |
| Paths | 1 |
| Total Lines | 9 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 48 | public function calculate(TransactionID $transactionId, Money $amount, int $status): Signature |
||
| 49 | { |
||
| 50 | return new Signature(strtoupper(hash('sha256', implode([ |
||
| 51 | $this->merchantId->getValue(), |
||
| 52 | $transactionId, |
||
| 53 | strtoupper(hash('sha256', strval($this->secretWord))), |
||
| 54 | $this->moneyFormatter->format($amount), |
||
| 55 | $amount->getCurrency(), |
||
| 56 | $status, |
||
| 57 | ])))); |
||
| 60 |