MissingNodeDeserializer   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 2
dl 0
loc 15
c 0
b 0
f 0
ccs 6
cts 6
cp 1
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
A deserialize() 0 5 1
1
<?php
2
3
namespace PPP\DataModel\Deserializers;
4
5
use Deserializers\TypedObjectDeserializer;
6
use PPP\DataModel\MissingNode;
7
8
/**
9
 * @licence AGPLv3+
10
 * @author Thomas Pellissier Tanon
11
 */
12
class MissingNodeDeserializer extends TypedObjectDeserializer {
13
14 7
	public function __construct() {
15 7
		parent::__construct('missing', 'type');
16 7
	}
17
18
	/**
19
	 * @see Deserializer::deserialize
20
	 */
21 3
	public function deserialize($serialization) {
22 3
		$this->assertCanDeserialize($serialization);
23
24 1
		return new MissingNode();
25
	}
26
}
27