Completed
Push — master ( 6f3b92...6a7f55 )
by Lars
03:19
created

SerializerNo   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 28
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 0
dl 0
loc 28
ccs 4
cts 4
cp 1
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A serialize() 0 4 1
A unserialize() 0 4 1
1
<?php
2
3
namespace voku\cache;
4
5
/**
6
 * SerializerNo: no serialize / unserialize !!!
7
 *
8
 * @package   voku\cache
9
 */
10
class SerializerNo implements iSerializer
11
{
12
13
  /**
14
   * serialize
15
   *
16
   * @param mixed $value
17
   *
18
   * @return string
19
   */
20 3
  public function serialize($value)
21
  {
22 3
    return $value;
23
  }
24
25
  /**
26
   * unserialize
27
   *
28
   * @param string $value
29
   *
30
   * @return mixed
31
   */
32 3
  public function unserialize($value)
33
  {
34 3
    return $value;
35
  }
36
37
}
38