Completed
Push — master ( 18b606...1191a0 )
by yuuki
04:00
created

AbstractKeyValueStorage::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 5
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 2
1
<?php
2
declare(strict_types=1);
3
4
namespace Ytake\PrestoClient\Session;
5
6
/**
7
 * Class AbstractKeyValueStorage
8
 */
9
abstract class AbstractKeyValueStorage
10
{
11
    /** @var string */
12
    private $key;
13
14
    /** @var string */
15
    private $value;
16
17
    /**
18
     * @param string $key
19
     * @param string $value
20
     */
21
    public function __construct(string $key, string $value)
22
    {
23
        $this->key = $key;
24
        $this->value = $value;
25
    }
26
27
    /**
28
     * @return string
29
     */
30
    public function getKey(): string
31
    {
32
        return $this->key;
33
    }
34
35
    /**
36
     * @return string
37
     */
38
    public function getValue(): string
39
    {
40
        return $this->value;
41
    }
42
}
43