CacheEntry   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 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