Total Complexity | 2 |
Total Lines | 42 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
7 | abstract class AbstractGenerator implements Generator |
||
8 | { |
||
9 | /** @var string */ |
||
10 | protected string $salt; |
||
11 | |||
12 | /** |
||
13 | * @param string $salt |
||
14 | */ |
||
15 | 42 | public function __construct(string $salt) |
|
18 | 42 | } |
|
19 | |||
20 | /** |
||
21 | * @inheritDoc |
||
22 | */ |
||
23 | 11 | public function Sign( |
|
40 | ]) |
||
41 | ); |
||
42 | } |
||
43 | |||
44 | /** |
||
45 | * @param string $input |
||
46 | * @return string |
||
47 | */ |
||
48 | abstract protected function hash(string $input): string; |
||
49 | } |