Completed
Push — try/code-signature-diff ( 9196c0...4ac422 )
by
unknown
183:18 queued 174:43
created

New_   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 28
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 0

Importance

Changes 0
Metric Value
dl 0
loc 28
rs 10
c 0
b 0
f 0
wmc 4
lcom 1
cbo 0

4 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A to_csv_array() 0 8 1
A type() 0 3 1
A display_name() 0 3 1
1
<?php
2
3
namespace Automattic\Jetpack\Analyzer\Invocations;
4
5
/**
6
 * Instantiation of a class
7
 */
8
class New_ {
9
	public $path;
10
	public $line;
11
	public $class_name;
12
13
	public function __construct( $path, $line, $class_name ) {
14
		$this->path = $path;
15
		$this->line = $line;
16
		$this->class_name = $class_name;
17
	}
18
19
	public function to_csv_array() {
20
		return array(
21
			$this->type(),
22
			$this->path,
23
			$this->line,
24
			$this->class_name
25
		);
26
	}
27
28
	function type() {
29
		return 'class';
30
	}
31
32
	function display_name() {
33
		return $this->class_name;
34
	}
35
}