Passed
Pull Request — master (#14)
by Korotkov
01:41
created

Registry::getFirst()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
3
declare(strict_types=1);
4
5
/**
6
 * @author  : Jagepard <[email protected]>
7
 * @license https://mit-license.org/ MIT
8
 */
9
10
namespace Structural\Adapter;
11
12
class Registry implements RegistryInterface
13
{
14
    private string $first;
15
    private string $second;
16
17
    /**
18
     * Sets the first value
19
     * --------------------
20
     * Устанавливает первое значение
21
     *
22
     * @param  string $value
23
     * @return void
24
     */
25
    public function setFirst(string $value)
26
    {
27
        $this->first = $value;
28
    }
29
30
    /**
31
     * Sets the second value
32
     * ---------------------
33
     * Устанавливает второе значение
34
     *
35
     * @param  string $value
36
     * @return void
37
     */
38
    public function setSecond(string $value)
39
    {
40
        $this->second = $value;
41
    }
42
43
    /**
44
     * Gets the first value
45
     * --------------------
46
     * Получает первое значение
47
     *
48
     * @return string
49
     */
50
    public function getFirst(): string
51
    {
52
        return $this->first;
53
    }
54
55
    /**
56
     * Gets the second value
57
     * ---------------------
58
     * Получает второе значение
59
     *
60
     * @return string
61
     */
62
    public function getSecond(): string
63
    {
64
        return $this->second;
65
    }
66
}
67