Literal::getLiteralValue()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1.037

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 3
ccs 2
cts 3
cp 0.6667
crap 1.037
rs 10
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