Cache::setCache()   A
last analyzed

Complexity

Conditions 4
Paths 2

Size

Total Lines 8
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

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