IntersectionNodeDeserializer   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 14
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 14
c 0
b 0
f 0
ccs 5
cts 5
cp 1
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
A getDeserialization() 0 3 1
1
<?php
2
3
namespace PPP\DataModel\Deserializers;
4
5
use PPP\DataModel\DeserializerFactory;
6
use PPP\DataModel\IntersectionNode;
7
8
/**
9
 * @licence AGPLv3+
10
 * @author Thomas Pellissier Tanon
11
 */
12
class IntersectionNodeDeserializer extends AbstractOperatorNodeDeserializer {
13
14
	/**
15
	 * @param DeserializerFactory $deserializerFactory
16
	 */
17 9
	public function __construct(DeserializerFactory $deserializerFactory) {
18 9
		parent::__construct($deserializerFactory, 'intersection');
19 9
	}
20
21
22 1
	protected function getDeserialization(array $list) {
23 1
		return new IntersectionNode($list);
24
	}
25
}
26