Total Complexity | 2 |
Total Lines | 41 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
17 | final class MD5SignatureCalculator implements SignatureCalculator |
||
18 | { |
||
19 | /** |
||
20 | * @var SecretWord |
||
21 | */ |
||
22 | private $secretWord; |
||
23 | |||
24 | /** |
||
25 | * @var |
||
26 | */ |
||
27 | private $merchantId; |
||
28 | |||
29 | /** |
||
30 | * @var MoneyFormatter |
||
31 | */ |
||
32 | private $moneyFormatter; |
||
33 | |||
34 | /** |
||
35 | * @param SecretWord $secretWord |
||
36 | * @param MerchantID $merchantId |
||
37 | * @param MoneyFormatter $moneyFormatter |
||
38 | */ |
||
39 | public function __construct(SecretWord $secretWord, MerchantID $merchantId, MoneyFormatter $moneyFormatter) |
||
44 | } |
||
45 | |||
46 | /** |
||
47 | * {@inheritdoc} |
||
48 | */ |
||
49 | public function calculate(TransactionID $transactionId, Money $amount, int $status): Signature |
||
61 |