Completed
Push — try/code-signature-diff ( 4ac422...584f2d )
by
unknown
218:12 queued 209:34
created

Warning   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A to_csv_array() 0 7 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 $path;
8
	public $line;
9
	public $message;
10
11
	function __construct( $path, $line, $message ) {
12
		$this->path = $path;
13
		$this->line = $line;
14
		$this->message = $message;
15
	}
16
17
	function to_csv_array() {
18
		return array(
19
			$this->path,
20
			$this->line,
21
			$this->message
22
		);
23
	}
24
}