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

MapDiff::getType()   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 0
1
<?php
2
3
namespace Diff\DiffOp\Diff;
4
5
/**
6
 * Class representing the diff between to (associative) arrays.
7
 * Since items are identified by keys, it's possible to do meaningful
8
 * recursive diffs. So the DiffOp objects contained by this MapDiff can
9
 * be containers such as MapDiff and ListDiff themselves.
10
 *
11
 * Soft deprecated since 0.4, just use Diff
12
 *
13
 * @since 0.1
14
 * @deprecated since 0.5, just use Diff instead
15
 *
16
 * @license GPL-2.0+
17
 * @author Jeroen De Dauw < [email protected] >
18
 */
19
class MapDiff extends Diff {
20
21
	public function __construct( array $operations = array() ) {
22
		parent::__construct( $operations, true );
23
	}
24
25
	/**
26
	 * @see DiffOp::getType
27
	 *
28
	 * @since 0.1
29
	 *
30
	 * @return string
31
	 */
32
	public function getType() {
33
		return 'map';
34
	}
35
36
}
37