Total Complexity | 3 |
Total Lines | 22 |
Duplicated Lines | 0 % |
Coverage | 62.5% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
9 | class HashidsConverter implements ConverterInterface |
||
10 | { |
||
11 | /** |
||
12 | * @var HashidsInterface |
||
13 | */ |
||
14 | private $hashids; |
||
15 | |||
16 | 1 | public function __construct(HashidsInterface $hashids) |
|
17 | { |
||
18 | 1 | $this->hashids = $hashids; |
|
19 | 1 | } |
|
20 | |||
21 | 1 | public function encode($value): string |
|
24 | } |
||
25 | |||
26 | public function decode($value) |
||
31 | } |
||
32 | } |
||
33 |