Completed
Push — master ( 94f5e8...a88b9e )
by Lars
01:57 queued 11s
created

SerializerNo   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 36
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 4
lcom 0
cbo 0
dl 0
loc 36
ccs 0
cts 8
cp 0
rs 10
c 0
b 0
f 0

4 Methods

Rating   Name   Duplication   Size   Complexity  
A serialize() 0 4 1
A unserialize() 0 4 1
A getName() 0 4 1
A setUnserializeOptions() 0 4 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace voku\cache;
6
7
/**
8
 * SerializerNo: no serialize / unserialize !!!
9
 */
10
class SerializerNo implements iSerializer
11
{
12
    /**
13
     * {@inheritdoc}
14
     */
15
    public function serialize($value)
16
    {
17
        return $value;
18
    }
19
20
    /**
21
     * {@inheritdoc}
22
     */
23
    public function unserialize($value)
24
    {
25
        return $value;
26
    }
27
28
    /**
29
     * @return string
30
     */
31
    public function getName(): string
32
    {
33
        return 'no';
34
    }
35
36
    /**
37
     * @param array $options
38
     *
39
     * @return void
40
     */
41
    public function setUnserializeOptions(array $options)
42
    {
43
        // nothing to do here
44
    }
45
}
46