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

GravityView_Field_Transaction_ID::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 3

Duplication

Lines 4
Ratio 100 %
Metric Value
dl 4
loc 4
rs 10
cc 1
eloc 3
nc 1
nop 0
1
<?php
2
/**
3
 * @file class-gravityview-field-transaction-id.php
4
 * @package GravityView
5
 * @subpackage includes\fields
6
 * @since 1.16
7
 */
8
9 View Code Duplication
class GravityView_Field_Transaction_ID extends GravityView_Field {
0 ignored issues
show
Duplication introduced by
This class seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
10
11
	var $name = 'transaction_id';
12
13
	var $is_searchable = true;
14
15
	var $is_numeric = true;
16
17
	var $search_operators = array( 'is', 'isnot' );
18
19
	var $group = 'pricing';
20
21
	var $_custom_merge_tag = 'transaction_id';
22
23
	/**
24
	 * GravityView_Field_Payment_Amount constructor.
25
	 */
26
	public function __construct() {
27
		$this->label = esc_attr__( 'Transaction ID', 'gravityview' );
28
		parent::__construct();
29
	}
30
}
31
32
new GravityView_Field_Transaction_ID;
33