2016-02-08 19:57:48 +00:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* Stub/Dummy class to test WC_Payment_Token methods only
|
|
|
|
*
|
2016-03-18 18:24:06 +00:00
|
|
|
* @since 2.6.0
|
2016-02-08 19:57:48 +00:00
|
|
|
*/
|
2016-03-23 12:14:13 +00:00
|
|
|
class WC_Payment_Token_Stub extends WC_Payment_Token {
|
2016-03-18 18:24:06 +00:00
|
|
|
|
2016-02-08 19:57:48 +00:00
|
|
|
/** @protected string Token Type String */
|
|
|
|
protected $type = 'stub';
|
|
|
|
|
|
|
|
/**
|
2016-03-18 18:24:06 +00:00
|
|
|
* Returns meta.
|
|
|
|
* @since 2.6.0
|
2016-02-08 19:57:48 +00:00
|
|
|
* @return string
|
|
|
|
*/
|
|
|
|
public function get_extra() {
|
2016-03-18 18:24:06 +00:00
|
|
|
return $this->get_meta( 'extra' );
|
2016-02-08 19:57:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
2016-03-18 18:24:06 +00:00
|
|
|
* Set meta.
|
|
|
|
* @since 2.6.0
|
2016-02-08 19:57:48 +00:00
|
|
|
* @param string $extra
|
|
|
|
*/
|
|
|
|
public function set_extra( $extra ) {
|
2016-03-18 18:24:06 +00:00
|
|
|
$this->add_meta_data( 'extra', $extra, true );
|
2016-02-08 19:57:48 +00:00
|
|
|
}
|
|
|
|
}
|