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

Value::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 1
dl 0
loc 3
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 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