NoneSerializer::serialize()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 1
crap 1
1
<?php
2
namespace Genkgo\Cache\Serializer;
3
4
use Genkgo\Cache\SerializerInterface;
5
6
final class NoneSerializer implements SerializerInterface {
7
8
    /**
9
     * @param $item
10
     * @return mixed
11
     */
12 17
    public function serialize($item)
13
    {
14 17
        return $item;
15
    }
16
17
    /**
18
     * @param $item
19
     * @return mixed
20
     */
21 12
    public function deserialize($item)
22
    {
23 12
        return $item;
24
    }
25
}