AbstractStrategy   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 7
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
eloc 3
c 1
b 0
f 0
dl 0
loc 7
ccs 0
cts 3
cp 0
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A getNames() 0 5 1
1
<?php
2
declare(strict_types=1);
3
4
namespace Ctw\Middleware\PageCacheMiddleware\Strategy\RouteNameStrategy;
5
6
use Ctw\Middleware\PageCacheMiddleware\Strategy\AbstractStrategy as ParentAbstractStrategy;
7
8
abstract class AbstractStrategy extends ParentAbstractStrategy
9
{
10
    protected function getNames(): array
11
    {
12
        $config = $this->getConfig();
13
14
        return $config['names'];
15
    }
16
}
17