Test Failed
Push — master ( 52c9b6...e5e5fb )
by Joao
46s
created

Literal   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 35
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 62.5%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 4
c 1
b 0
f 0
lcom 0
cbo 0
dl 0
loc 35
ccs 5
cts 8
cp 0.625
rs 10

4 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getLiteralValue() 0 4 1
A setLiteralValue() 0 4 1
A __toString() 0 4 1
1
<?php
2
/**
3
 * User: jg
4
 * Date: 30/03/17
5
 * Time: 22:26
6
 */
7
8
namespace ByJG\MicroOrm;
9
10
class Literal
11
{
12
    protected $literalValue;
13
14
    /**
15
     * Literal constructor.
16
     *
17
     * @param $literalValue
18
     */
19 6
    public function __construct($literalValue)
20
    {
21 6
        $this->literalValue = $literalValue;
22 6
    }
23
24
    /**
25
     * @return mixed
26
     */
27 6
    public function getLiteralValue()
28
    {
29 6
        return $this->literalValue;
30
    }
31
32
    /**
33
     * @param mixed $literalValue
34
     */
35
    public function setLiteralValue($literalValue)
36
    {
37
        $this->literalValue = $literalValue;
38
    }
39
40
    public function __toString()
41
    {
42
        return $this->getLiteralValue();
43
    }
44
}
45