Completed
Push — 21x ( 0e3ed4...f4f4da )
by adam
17:20 queued 21s
created

ListDiff::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 3
c 0
b 0
f 0
rs 10
cc 1
eloc 2
nc 1
nop 1
1
<?php
2
3
namespace Diff\DiffOp\Diff;
4
5
/**
6
 * Class representing the diff between to (non-associative) arrays.
7
 * Since items are not identified by keys, we only deal with the actual values,
8
 * so can only compute additions and removals.
9
 *
10
 * Soft deprecated since 0.4, just use Diff
11
 *
12
 * @since 0.1
13
 * @deprecated since 0.5, just use Diff instead
14
 *
15
 * @license GPL-2.0+
16
 * @author Jeroen De Dauw < [email protected] >
17
 */
18
class ListDiff extends Diff {
19
20
	public function __construct( array $operations = array() ) {
21
		parent::__construct( $operations, false );
22
	}
23
24
	/**
25
	 * @see DiffOp::getType
26
	 *
27
	 * @since 0.1
28
	 *
29
	 * @return string
30
	 */
31
	public function getType() {
32
		return 'list';
33
	}
34
35
}
36