| 1 | <?php |
||
| 12 | abstract class AddressReaderBase |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * @param string $strAddress |
||
| 16 | * @param NetworkInterface $network |
||
| 17 | * @return PayToPubKeyHashAddress|ScriptHashAddress|null |
||
| 18 | */ |
||
| 19 | 35 | protected function readBase58($strAddress, NetworkInterface $network) { |
|
| 33 | |||
| 34 | /** |
||
| 35 | * @param $strAddress |
||
| 36 | * @param NetworkInterface|null $network |
||
| 37 | * @return AddressInterface |
||
| 38 | */ |
||
| 39 | abstract public function fromString($strAddress, NetworkInterface $network = null); |
||
| 40 | |||
| 41 | /** |
||
| 42 | * @param ScriptInterface $script |
||
| 43 | * @return AddressInterface |
||
| 44 | */ |
||
| 45 | abstract public function fromOutputScript(ScriptInterface $script); |
||
| 46 | } |
||
| 47 |