Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
100.00% |
2 / 2 |
|
100.00% |
1 / 1 |
CRAP | |
100.00% |
1 / 1 |
| Wallet_Generation_Result | |
100.00% |
2 / 2 |
|
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
| __construct | |
100.00% |
2 / 2 |
|
100.00% |
1 / 1 |
1 | |||
| 1 | <?php |
| 2 | /** |
| 3 | * Model class representing the result of generating a new wallet. |
| 4 | * |
| 5 | * @package brianhenryie/bh-wp-bitcoin-gateway |
| 6 | */ |
| 7 | |
| 8 | namespace BrianHenryIE\WP_Bitcoin_Gateway\API\Model\Results; |
| 9 | |
| 10 | use BrianHenryIE\WP_Bitcoin_Gateway\API\Services\Results\Get_Wallet_For_Xpub_Service_Result; |
| 11 | use BrianHenryIE\WP_Bitcoin_Gateway\API_Interface; |
| 12 | |
| 13 | /** |
| 14 | * @used-by API::get_or_save_wallet_for_master_public_key() |
| 15 | * @used-by API_Interface::get_or_save_wallet_for_master_public_key() |
| 16 | */ |
| 17 | readonly class Wallet_Generation_Result extends Get_Wallet_For_Xpub_Service_Result { |
| 18 | |
| 19 | /** |
| 20 | * Constructor. |
| 21 | * |
| 22 | * @param Get_Wallet_For_Xpub_Service_Result $get_wallet_for_xpub_service_result The data and wallet. |
| 23 | * @param bool $did_schedule_ensure_addresses Was a background job scheduled to ensure addresses. |
| 24 | */ |
| 25 | public function __construct( |
| 26 | Get_Wallet_For_Xpub_Service_Result $get_wallet_for_xpub_service_result, |
| 27 | public bool $did_schedule_ensure_addresses, |
| 28 | ) { |
| 29 | $get_wallet_for_xpub_service_result_array = (array) $get_wallet_for_xpub_service_result; |
| 30 | parent::__construct( ...$get_wallet_for_xpub_service_result_array ); |
| 31 | } |
| 32 | } |