IntersectionNodeDeserializer::getDeserialization()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 3
c 0
b 0
f 0
ccs 2
cts 2
cp 1
rs 10
nc 1
cc 1
eloc 2
nop 1
crap 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