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

PhpSerializer::serialize()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 2
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

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