Completed
Push — master ( 3ac4b1...21157a )
by Zack
05:18
created

GravityView_Field_Payment_Method   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 23
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
1
<?php
2
/**
3
 * @file class-gravityview-field-payment-method.php
4
 * @package GravityView
5
 * @subpackage includes\fields
6
 * @since 1.16
7
 */
8
9
class GravityView_Field_Payment_Method extends GravityView_Field {
10
11
	var $name = 'payment_method';
12
13
	var $is_searchable = true;
14
15
	var $is_numeric = false;
16
17
	var $search_operators = array( 'is', 'isnot' );
18
19
	var $group = 'pricing';
20
21
	var $_custom_merge_tag = 'payment_method';
22
23
	/**
24
	 * GravityView_Field_Date_Created constructor.
25
	 */
26
	public function __construct() {
27
		$this->label = esc_attr__( 'Payment Method', 'gravityview' );
28
		$this->description = esc_html( 'The way the entry was paid for (ie "Credit Card", "PayPal", etc.)', 'gravityview' );
29
		parent::__construct();
30
	}
31
}
32
33
new GravityView_Field_Payment_Method;
34