Fix phpcs violations in includes/payment-tokens/class-wc-payment-token-echeck.php
This commit is contained in:
parent
799863ea71
commit
a8e03a1c4a
|
@ -1,7 +1,12 @@
|
|||
<?php
|
||||
/**
|
||||
* Class WC_Payment_Token_eCheck file.
|
||||
*
|
||||
* @package WooCommerce\PaymentTokens
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit; // Exit if accessed directly
|
||||
exit; // Exit if accessed directly.
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -12,13 +17,15 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|||
* @class WC_Payment_Token_ECheck
|
||||
* @version 3.0.0
|
||||
* @since 2.6.0
|
||||
* @category PaymentTokens
|
||||
* @package WooCommerce/PaymentTokens
|
||||
* @author WooThemes
|
||||
*/
|
||||
class WC_Payment_Token_ECheck extends WC_Payment_Token {
|
||||
|
||||
/** @protected string Token Type String. */
|
||||
/**
|
||||
* Token Type String.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $type = 'eCheck';
|
||||
|
||||
/**
|
||||
|
@ -34,7 +41,7 @@ class WC_Payment_Token_ECheck extends WC_Payment_Token {
|
|||
* Get type to display to user.
|
||||
*
|
||||
* @since 2.6.0
|
||||
* @param string $deprecated Deprecated since WooCommerce 3.0
|
||||
* @param string $deprecated Deprecated since WooCommerce 3.0.
|
||||
* @return string
|
||||
*/
|
||||
public function get_display_name( $deprecated = '' ) {
|
||||
|
@ -74,7 +81,7 @@ class WC_Payment_Token_ECheck extends WC_Payment_Token {
|
|||
* Returns the last four digits.
|
||||
*
|
||||
* @since 2.6.0
|
||||
* @param string $context
|
||||
* @param string $context What the value is for. Valid values are view and edit.
|
||||
* @return string Last 4 digits
|
||||
*/
|
||||
public function get_last4( $context = 'view' ) {
|
||||
|
@ -85,7 +92,7 @@ class WC_Payment_Token_ECheck extends WC_Payment_Token {
|
|||
* Set the last four digits.
|
||||
*
|
||||
* @since 2.6.0
|
||||
* @param string $last4
|
||||
* @param string $last4 eCheck last four digits.
|
||||
*/
|
||||
public function set_last4( $last4 ) {
|
||||
$this->set_prop( 'last4', $last4 );
|
||||
|
|
Loading…
Reference in New Issue