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

ForkFormatter::serialize()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 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