Yaml   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 0
dl 0
loc 16
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A translate() 0 4 1
1
<?php
2
3
/**
4
 * Manage Response by Yaml 
5
 *
6
 * @category  	lib
7
 * @package		lib\Cache
8
 * @author    	Judicaël Paquet <[email protected]>
9
 * @copyright 	Copyright (c) 2013-2014 PAQUET Judicaël FR Inc. (https://github.com/las93)
10
 * @license   	https://github.com/las93/venus2/blob/master/LICENSE.md Tout droit réservé à PAQUET Judicaël
11
 * @version   	Release: 1.0.0
12
 * @filesource	https://github.com/las93/venus2
13
 * @link      	https://github.com/las93
14
 * @since     	1.0
15
 */
16
namespace Venus\lib\Response;
17
18
use \Venus\lib\Response\ResponseInterface as ResponseInterface;
19
20
/**
21
 * Manage Response by Yaml
22
 *
23
 * @category  	lib
24
 * @package		lib\Cache
25
 * @author    	Judicaël Paquet <[email protected]>
26
 * @copyright 	Copyright (c) 2013-2014 PAQUET Judicaël FR Inc. (https://github.com/las93)
27
 * @license   	https://github.com/las93/venus2/blob/master/LICENSE.md Tout droit réservé à PAQUET Judicaël
28
 * @version   	Release: 1.0.0
29
 * @filesource	https://github.com/las93/venus2
30
 * @link      	https://github.com/las93
31
 * @since     	1.0
32
 */
33
class Yaml implements ResponseInterface
34
{
35
    /**
36
     * translate the content
37
     * @see \Venus\lib\Response\ResponseInterface::translate()
38
     *
39
     * @access public
40
     * @param  mixed $mContent content to translate
41
     * @return mixed
42
     */
43
    public static function translate($mContent)
44
    {
45
        return yaml_emit($mContent);
46
    }
47
48
}
49