Total Complexity | 5 |
Total Lines | 37 |
Duplicated Lines | 0 % |
Coverage | 81.82% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
16 | class ItemDiff extends EntityDiff { |
||
17 | |||
18 | /** |
||
19 | * @param DiffOp[] $operations |
||
20 | */ |
||
21 | 29 | public function __construct( array $operations = [] ) { |
|
22 | 29 | $this->fixSubstructureDiff( $operations, 'links' ); |
|
23 | |||
24 | 29 | parent::__construct( $operations ); |
|
25 | 29 | } |
|
26 | |||
27 | /** |
||
28 | * Returns a Diff object with the sitelink differences. |
||
29 | * |
||
30 | * @return Diff |
||
31 | */ |
||
32 | 26 | public function getSiteLinkDiff() { |
|
34 | } |
||
35 | |||
36 | /** |
||
37 | * @see EntityDiff::isEmpty |
||
38 | * |
||
39 | * @return bool |
||
40 | */ |
||
41 | 7 | public function isEmpty(): bool { |
|
42 | 7 | return parent::isEmpty() |
|
43 | 7 | && $this->getSiteLinkDiff()->isEmpty(); |
|
44 | } |
||
45 | |||
46 | /** |
||
47 | * @see DiffOp::getType |
||
48 | * |
||
49 | * @return string |
||
50 | */ |
||
51 | public function getType(): string { |
||
53 | } |
||
54 | |||
55 | } |
||
56 |