Returns the card expiration month (MM).
public get_expiry_month ( string $context = 'view' ) : string | ||
$context | string | |
리턴 | string | Expiration month |
/** * Test get/set expiry month. * @since 2.6.0 */ public function test_wc_payment_token_cc_expiry_month() { $token = new WC_Payment_Token_CC(); $token->set_expiry_month('08'); $this->assertEquals('08', $token->get_expiry_month()); }