Total Complexity | 2 |
Total Lines | 20 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
18 | class HashHmac implements ComplexAlgorithmInterface |
||
19 | { |
||
20 | protected $algorithm; |
||
21 | |||
22 | /** |
||
23 | * HashHmac constructor. |
||
24 | * @param string $algorithm |
||
25 | */ |
||
26 | public function __construct( |
||
27 | string $algorithm = 'md5' |
||
28 | ) { |
||
29 | $this->algorithm = $algorithm; |
||
30 | } |
||
31 | |||
32 | /** |
||
33 | * @inheritDoc |
||
34 | */ |
||
35 | public function sign(string $message, string $secret): string |
||
38 | } |
||
39 | } |
||
40 |