CacheEntry   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
1
<?php
2
3
namespace Kodus\Cache\Database;
4
5
class CacheEntry
6
{
7
    /**
8
     * @var string
9
     */
10
    public $key;
11
12
    /**
13
     * @var string serialized data
14
     */
15
    public $data;
16
17
    /**
18
     * @var int expiration timestamp
19
     */
20
    public $expires;
21
22 82
    public function __construct(string $key, string $data, int $expires)
23
    {
24 82
        $this->key = $key;
25 82
        $this->data = $data;
26 82
        $this->expires = $expires;
27 82
    }
28
}
29