..).
public get_card_type ( string $context = 'view' ) : string | ||
$context | string | |
return | string | Card type |
/** * Tes get/set card type. * @since 2.6.0 */ public function test_wc_payment_token_cc_card_type() { $token = new WC_Payment_Token_CC(); $token->set_card_type('visa'); $this->assertEquals('visa', $token->get_card_type()); }