Passed
Push — master ( 1ef033...4ce446 )
by Jesús
09:47 queued 03:16
created

CustomServicesCache   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 4
dl 0
loc 17
rs 10
c 1
b 0
f 0
ccs 4
cts 4
cp 1
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getCacheFilename() 0 3 1
A getAll() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Gacela\Framework\ClassResolver\DocBlockService;
6
7
use Gacela\Framework\ClassResolver\AbstractFileCache;
8
9
final class CustomServicesCache extends AbstractFileCache
10
{
11
    public const CACHE_FILENAME = '.gacela-custom-services.cache';
12
13
    /**
14
     * @internal
15
     *
16
     * @return array<string,string>
17
     */
18 1
    public static function getAll(): array
19
    {
20 1
        return self::$cache;
21
    }
22
23 8
    protected function getCacheFilename(): string
24
    {
25 8
        return self::CACHE_FILENAME;
26
    }
27
}
28