Passed
Push — master ( abee1f...edc958 )
by Kirill
03:08
created

Value   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 2
eloc 4
dl 0
loc 12
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getValue() 0 3 1
A __construct() 0 3 1
1
<?php
2
3
/**
4
 * Spiral Framework.
5
 *
6
 * @license   MIT
7
 * @author    Anton Titov (Wolfy-J)
8
 */
9
10
declare(strict_types=1);
11
12
namespace Spiral\Tests\Config;
13
14
class Value
15
{
16
    private $value;
17
18
    public function __construct(string $value = 'value!')
19
    {
20
        $this->value = $value;
21
    }
22
23
    public function getValue()
24
    {
25
        return $this->value;
26
    }
27
}
28