Total Complexity | 3 |
Total Lines | 35 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
8 | class DerSignatureSerializer implements DerSignatureSerializerInterface |
||
9 | { |
||
10 | /** |
||
11 | * @var Der\Parser |
||
12 | */ |
||
13 | private $parser; |
||
14 | |||
15 | /** |
||
16 | * @var Der\Formatter |
||
17 | */ |
||
18 | private $formatter; |
||
19 | |||
20 | public function __construct() |
||
24 | } |
||
25 | |||
26 | /** |
||
27 | * @param SignatureInterface $signature |
||
28 | * @return string |
||
29 | */ |
||
30 | public function serialize(SignatureInterface $signature): string |
||
31 | { |
||
32 | return $this->formatter->serialize($signature); |
||
33 | } |
||
34 | |||
35 | /** |
||
36 | * @param string $binary |
||
37 | * @return SignatureInterface |
||
38 | * @throws \FG\ASN1\Exception\ParserException |
||
39 | */ |
||
40 | public function parse(string $binary): SignatureInterface |
||
43 | } |
||
44 | } |
||
45 |