Passed
Pull Request — master (#1156)
by Aleksei
19:33 queued 08:26
created

CacheEvent   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 5
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
eloc 1
dl 0
loc 5
ccs 1
cts 1
cp 1
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Spiral\Cache\Event;
6
7
/**
8
 * Base class for all cache events.
9
 */
10
abstract class CacheEvent
11
{
12 10
    public function __construct(
13
        public readonly string $key,
14
    ) {
15 10
    }
16
}
17