Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | n/a |
0 / 0 |
n/a |
0 / 0 |
CRAP | n/a |
0 / 0 |
|||
| 1 | <?php |
| 2 | /** |
| 3 | * |
| 4 | * |
| 5 | * @package brianhenryie/bh-wp-bitcoin-gateway |
| 6 | */ |
| 7 | |
| 8 | namespace BrianHenryIE\WP_Bitcoin_Gateway\API\Model; |
| 9 | |
| 10 | interface Transaction_Interface { |
| 11 | |
| 12 | /** |
| 13 | * @return string |
| 14 | */ |
| 15 | public function get_txid(): string; |
| 16 | |
| 17 | /** |
| 18 | * Used to filter transactions to only those between the time the order was placed, and paid. |
| 19 | * |
| 20 | * @return \DateTimeInterface |
| 21 | */ |
| 22 | public function get_time(): \DateTimeInterface; |
| 23 | |
| 24 | /** |
| 25 | * @return string |
| 26 | */ |
| 27 | public function get_value( string $to_address ): float; |
| 28 | |
| 29 | /** |
| 30 | * Null for mempool |
| 31 | */ |
| 32 | public function get_block_height(): ?int; |
| 33 | } |