Completed
Push — feature/back-compat-7.5 ( 9186e7 )
by
unknown
23:17 queued 14:42
created

Warning   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

Changes 0
Metric Value
dl 0
loc 22
rs 10
c 0
b 0
f 0
wmc 2
lcom 1
cbo 1

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
A to_csv_array() 0 8 1
1
<?php
2
3
namespace Automattic\Jetpack\Analyzer\Warnings;
4
use Automattic\Jetpack\Analyzer\PersistentList\Item as PersistentListItem;
5
6
class Warning extends PersistentListItem {
7
	public $type;
8
	public $path;
9
	public $line;
10
	public $message;
11
12
	function __construct( $type, $path, $line, $message ) {
13
		$this->type = $type;
14
		$this->path = $path;
15
		$this->line = $line;
16
		$this->message = $message;
17
	}
18
19
	function to_csv_array() {
20
		return array(
21
			$this->type,
22
			$this->path,
23
			$this->line,
24
			$this->message
25
		);
26
	}
27
}