Completed
Push — renovate/glob-7.x ( 697d78...f7fc07 )
by
unknown
18:21 queued 12:01
created

Class_   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

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

4 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 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\Declarations;
4
5
class Class_ extends Declaration {
6
	public $class_name;
7
8
	function __construct( $path, $line, $class_name ) {
9
		$this->class_name = $class_name;
10
		parent::__construct( $path, $line );
11
	}
12
13
	function to_csv_array() {
14
		return array(
15
			$this->type(),
16
			$this->path,
17
			$this->line,
18
			$this->class_name
19
		);
20
	}
21
22
	function type() {
23
		return 'class';
24
	}
25
26
	function display_name() {
27
		return $this->class_name;
28
	}
29
}