CacheEntry::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 4
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 3
c 1
b 0
f 0
dl 0
loc 5
rs 10
ccs 4
cts 4
cp 1
cc 1
nc 1
nop 3
crap 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