1 | <?php |
||
12 | class ConsensusFactory |
||
13 | { |
||
14 | /** |
||
15 | * @var EcAdapterInterface |
||
16 | */ |
||
17 | private $ecAdapter; |
||
18 | |||
19 | /** |
||
20 | * @param EcAdapterInterface $ecAdapter |
||
21 | */ |
||
22 | 30 | public function __construct(EcAdapterInterface $ecAdapter) |
|
26 | |||
27 | /** |
||
28 | * @param $int |
||
29 | * @return Flags |
||
30 | */ |
||
31 | 30 | public function flags($int) |
|
35 | |||
36 | /** |
||
37 | * @return Flags |
||
38 | */ |
||
39 | 24 | public function defaultFlags() |
|
47 | |||
48 | /** |
||
49 | * @param Flags $flags |
||
50 | * @return NativeConsensus |
||
51 | */ |
||
52 | 12 | public function getNativeConsensus(Flags $flags) |
|
56 | |||
57 | /** |
||
58 | * @param Flags $flags |
||
59 | * @return BitcoinConsensus |
||
60 | */ |
||
61 | public function getBitcoinConsensus(Flags $flags) |
||
65 | |||
66 | /** |
||
67 | * @param Flags $flags |
||
68 | * @return ConsensusInterface |
||
69 | */ |
||
70 | 6 | public function getConsensus(Flags $flags) |
|
78 | } |
||
79 |