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 | * Meta keys used when saving Bitcoin_Wallet as a WP_Post. |
| 4 | * |
| 5 | * @package brianhenryie/bh-wp-bitcoin-gateway |
| 6 | */ |
| 7 | |
| 8 | namespace BrianHenryIE\WP_Bitcoin_Gateway\API\Model\Wallet; |
| 9 | |
| 10 | interface Bitcoin_Wallet_WP_Post_Interface { |
| 11 | |
| 12 | const string POST_TYPE = 'bh-bitcoin-wallet'; |
| 13 | |
| 14 | const string LAST_DERIVED_ADDRESS_INDEX_META_KEY = 'last_derived_address_index'; |
| 15 | |
| 16 | /** |
| 17 | * Meta key to store the payment gateway ids this wallet is used with. |
| 18 | * `get_post_meta( $wallet_post_id, 'payment_gateway_ids', false )` returns an array of gateway ids. |
| 19 | * |
| 20 | * TODO: would this be better done as a taxonomy? |
| 21 | */ |
| 22 | const string GATEWAYS_DETAILS_META_KEY = 'associated_payment_gateways'; |
| 23 | } |