Passed
Push — master ( 0bc779...491b2f )
by Jean-Christophe
09:46
created

PhpSerializer   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
eloc 3
c 1
b 0
f 0
dl 0
loc 8
ccs 4
cts 4
cp 1
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A serialize() 0 2 1
A unserialize() 0 2 1
1
<?php
2
3
namespace Ubiquity\contents\serializers;
4
5
/**
6
 * Ubiquity\contents\serializers$PhpSerializer
7
 * This class is part of Ubiquity
8
 *
9
 * @author jc
10
 * @version 1.0.0
11
 *
12
 */
13
class PhpSerializer implements SerializerInterface {
14
15 1
	public function serialize($object) {
16 1
		return \serialize ( $object );
17
	}
18
19 1
	public function unserialize($serial) {
20 1
		return \unserialize ( $serial );
21
	}
22
}
23
24