Cache   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Importance

Changes 3
Bugs 0 Features 0
Metric Value
eloc 6
c 3
b 0
f 0
dl 0
loc 17
rs 10
wmc 4

1 Method

Rating   Name   Duplication   Size   Complexity  
A setCache() 0 8 4
1
<?php
2
3
namespace CConverter\Cache;
4
5
class Cache implements CacheInterface
6
{
7
    /**
8
     * change cache parameter
9
     *
10
     * @param  bool $is
11
     * @param  int  $time
12
     * @return bool
13
     */
14
    public static function setCache($is, $time)
15
    {
16
        if($is==true && is_numeric($time) && is_int($time)){
17
            $output = true;
18
        }else{
19
            $output = false;
20
        }
21
        return $output;
22
    }
23
}
24