Literal   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 33
Duplicated Lines 0 %

Test Coverage

Coverage 33.33%

Importance

Changes 2
Bugs 0 Features 0
Metric Value
eloc 6
c 2
b 0
f 0
dl 0
loc 33
ccs 5
cts 15
cp 0.3333
rs 10
wmc 4

4 Methods

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