Completed
Push — develop ( bd6ad5...7b688d )
by Zack
04:29
created

GravityView_Field_Payment_Method::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 3

Duplication

Lines 0
Ratio 0 %
Metric Value
dl 0
loc 4
rs 10
cc 1
eloc 3
nc 1
nop 0
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' );
0 ignored issues
show
Bug introduced by
The property label cannot be accessed from this context as it is declared private in class GravityView_Field.

This check looks for access to properties that are not accessible from the current context.

If you need to make a property accessible to another context you can either raise its visibility level or provide an accessible getter in the defining class.

Loading history...
28
		parent::__construct();
29
	}
30
}
31
32
new GravityView_Field_Payment_Method;
33