Completed
Push — master ( 64dc4d...ea22f3 )
by Derek Stephen
02:37
created

StringValue::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
ccs 3
cts 3
cp 1
rs 10
cc 1
eloc 2
nc 1
nop 1
crap 1
1
<?php
2
/**
3
 * User: delboy1978uk
4
 * Date: 13/11/2016
5
 * Time: 13:26
6
 */
7
8
namespace Del\Common\Value;
9
10
11
class StringValue extends AbstractValue
12
{
13
    /**
14
     * StringValue constructor.
15
     *
16
     * @param string $value
17
     */
18 1
    public function __construct($value)
19
    {
20 1
        $this->value = (string) $value;
21 1
    }
22
23
    /**
24
     * @return string
25
     */
26 1
    public function getValue()
27
    {
28 1
        return parent::getValue();
29
    }
30
}