Test Setup Failed
Push — feature/custom-services-cache ( f75830 )
by Chema
29:27
created

CustomServicesCache   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Importance

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

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
    public static function getAll(): array
19
    {
20
        return self::$cache;
21
    }
22
23
    protected function getCacheFilename(): string
24
    {
25
        return self::CACHE_FILENAME;
26
    }
27
}
28