Passed
Branch 4.1.0 (271fee)
by Joao
03:47
created

Literal   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 33
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

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

4 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
A __toString() 0 3 1
A setLiteralValue() 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
    public function __construct($literalValue)
15
    {
16
        $this->literalValue = $literalValue;
17
    }
18
19
    /**
20
     * @return mixed
21
     */
22
    public function getLiteralValue()
23
    {
24
        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