Completed
Push — master ( 95a6e8...b8af6d )
by Filipe
07:12
created

Value::resolve()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
crap 1
1
<?php
2
3
/**
4
 * This file is part of slick/di package
5
 *
6
 * For the full copyright and license information, please view the LICENSE
7
 * file that was distributed with this source code.
8
 */
9
10
namespace Slick\Di\Definition;
11
12
use Slick\Di\DefinitionInterface;
13
14
/**
15
 * Value definition class
16
 *
17
 * @package Slick\Tests\Di\Definition
18
 *
19
 * @property mixed $value The value to store
20
 *
21
 * @method $this|Value setValue(mixed $value) Sets the value to store
22
 */
23
class Value extends AbstractDefinition implements DefinitionInterface
24
{
25
26
    /**
27
     * @readwrite
28
     * @var mixed
29
     */
30
    protected $value;
31
32
    /**
33
     * Resolves current definition and returns its value
34
     *
35
     * @return mixed
36
     */
37 6
    public function resolve()
38
    {
39 6
        return $this->value;
40
    }
41
42
}