Total Complexity | 2 |
Total Lines | 18 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
17 | class CheckerCreator extends CheckerCreatorBase |
||
18 | { |
||
19 | 2 | public static function fromEcAdapter(EcAdapterInterface $ecAdapter) |
|
20 | { |
||
21 | 2 | $derSigSer = EcSerializer::getSerializer(DerSignatureSerializerInterface::class); |
|
22 | 2 | $txSigSer = new TransactionSignatureSerializer($derSigSer); |
|
23 | 2 | $pkSer = EcSerializer::getSerializer(PublicKeySerializerInterface::class); |
|
24 | 2 | return new CheckerCreator($ecAdapter, $txSigSer, $pkSer); |
|
25 | } |
||
26 | /** |
||
27 | * @param TransactionInterface $tx |
||
28 | * @param int $nInput |
||
29 | * @param TransactionOutputInterface $txOut |
||
30 | * @return CheckerBase |
||
31 | */ |
||
32 | 114 | public function create(TransactionInterface $tx, int $nInput, TransactionOutputInterface $txOut): CheckerBase |
|
35 | } |
||
36 | } |
||
37 |