Completed
Push — master ( 68a3b4...eb08b5 )
by Akihito
02:34
created

ForkFormatter   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
c 1
b 0
f 0
lcom 0
cbo 0
dl 0
loc 20
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A serialize() 0 4 1
A unserialize() 0 4 1
1
<?php
2
namespace Ackintosh\Snidel;
3
4
class ForkFormatter
5
{
6
    /**
7
     * @param   \Ackintosh\Snidel\Fork  $fork
8
     * @return  string
9
     */
10
    public static function serialize($fork)
11
    {
12
        return serialize($fork);
13
    }
14
15
    /**
16
     * @param   string  $serializedFork
17
     * @return  \Ackintosh\Snidel\Fork
18
     */
19
    public static function unserialize($serializedFork)
20
    {
21
        return unserialize($serializedFork);
22
    }
23
}
24