Completed
Push — master ( 4deaab...ecf49a )
by Joao
04:00 queued 01:34
created

Literal::getLiteralValue()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
crap 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 4
    public function __construct($literalValue)
20
    {
21 4
        $this->literalValue = $literalValue;
22 4
    }
23
24
    /**
25
     * @return mixed
26
     */
27 4
    public function getLiteralValue()
28
    {
29 4
        return $this->literalValue;
30
    }
31
32
    /**
33
     * @param mixed $literalValue
34
     */
35
    public function setLiteralValue($literalValue)
36
    {
37
        $this->literalValue = $literalValue;
38
    }
39
}
40