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

StringValue   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
c 1
b 0
f 0
lcom 0
cbo 1
dl 0
loc 20
ccs 5
cts 5
cp 1
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getValue() 0 4 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
}