Prefixed   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 2
dl 0
loc 9
rs 10
c 0
b 0
f 0
wmc 2

1 Method

Rating   Name   Duplication   Size   Complexity  
A key() 0 3 2
1
<?php
2
/**
3
 * Prefixed cache-key
4
 * User: moyo
5
 * Date: 26/10/2017
6
 * Time: 10:56 AM
7
 */
8
9
namespace Carno\Cache\Chips;
10
11
trait Prefixed
12
{
13
    /**
14
     * @param string $input
15
     * @return string
16
     */
17
    protected function key(string $input) : string
18
    {
19
        return $this->prefix ? sprintf('%s:%s', $this->prefix, $input) : $input;
20
    }
21
}
22