Passed
Pull Request — master (#159)
by Mohamed
12:54
created

CacheAdapter   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 4
c 1
b 0
f 0
dl 0
loc 9
rs 10
wmc 2

1 Method

Rating   Name   Duplication   Size   Complexity  
A setContext() 0 7 2
1
<?php
2
3
namespace LeKoala\DebugBar\Proxy;
4
5
use SilverStripe\Versioned\Caching\VersionedCacheAdapter;
6
7
class CacheAdapter extends VersionedCacheAdapter
8
{
9
    public function setContext(string $context): self
10
    {
11
        if (method_exists($this->pool, 'setContext')) {
12
            $this->pool->setContext($context);
13
        }
14
15
        return $this;
16
    }
17
}
18