Completed
Push — master ( f2e7a7...9c404b )
by Victor
01:52
created

FileLocation::getValue()   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 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
cc 1
eloc 2
nc 1
nop 0
crap 1
1
<?php
2
/**
3
 * Created with PHP 5.6 generator
4
 * User: 
5
 * PHP 5.6 generator created by Victor MECH - April 2016
6
*/
7
8
namespace LazyEight\DiTesto\ValueObject;
9
10
11
use LazyEight\BasicTypes\Interfaces\ValueObjectInterface;
12
use LazyEight\BasicTypes\Stringy;
13
14
class FileLocation implements ValueObjectInterface
15
{
16
    /*
17
     * @var Stringy
18
     */
19
    private $location;
20
    
21
    /**
22
     * @param Stringy $location
23
     */
24 2
    public function __construct(Stringy $location)
25
    {
26 2
        $this->location = $location;
27 2
    }
28
29
    /**
30
     * @inheritDoc
31
     */
32 2
    public function getValue()
33
    {
34 2
        return clone $this->location;
35
    }
36
}
37