AbstractStrategy::getNames()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
eloc 2
c 0
b 0
f 0
dl 0
loc 5
ccs 0
cts 3
cp 0
rs 10
cc 1
nc 1
nop 0
crap 2
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