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