Completed
Push — master ( e099bf...2f0857 )
by Lars
04:09
created

SerializerNo   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 20
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 20
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
   * @inheritdoc
15
   */
16 3
  public function serialize($value)
17
  {
18 3
    return $value;
19
  }
20
21
  /**
22
   * @inheritdoc
23
   */
24 2
  public function unserialize($value)
25
  {
26 2
    return $value;
27
  }
28
29
}
30