1 | <?php |
||
14 | abstract class CheckerCreatorBase |
||
15 | { |
||
16 | /** |
||
17 | * @var EcAdapterInterface |
||
18 | */ |
||
19 | protected $ecAdapter; |
||
20 | |||
21 | /** |
||
22 | * @var TransactionSignatureSerializer |
||
23 | */ |
||
24 | protected $txSigSerializer; |
||
25 | |||
26 | /** |
||
27 | * @var PublicKeySerializerInterface |
||
28 | */ |
||
29 | protected $pubKeySerializer; |
||
30 | |||
31 | /** |
||
32 | * CheckerCreator constructor. |
||
33 | * @param EcAdapterInterface $ecAdapter |
||
34 | * @param TransactionSignatureSerializer $txSigSerializer |
||
35 | * @param PublicKeySerializerInterface $pubKeySerializer |
||
36 | */ |
||
37 | 109 | public function __construct( |
|
46 | |||
47 | /** |
||
48 | * @param TransactionInterface $tx |
||
49 | * @param int $nInput |
||
50 | * @param TransactionOutputInterface $txOut |
||
51 | * @return CheckerBase |
||
52 | */ |
||
53 | abstract public function create(TransactionInterface $tx, int $nInput, TransactionOutputInterface $txOut): CheckerBase; |
||
54 | } |
||
55 |