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

Registry   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 53
Duplicated Lines 0 %

Importance

Changes 3
Bugs 0 Features 0
Metric Value
eloc 7
c 3
b 0
f 0
dl 0
loc 53
rs 10
wmc 4

4 Methods

Rating   Name   Duplication   Size   Complexity  
A setSecond() 0 3 1
A getSecond() 0 3 1
A getFirst() 0 3 1
A setFirst() 0 3 1
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