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

Literal   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 30
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 62.5%

Importance

Changes 0
Metric Value
wmc 3
lcom 0
cbo 0
dl 0
loc 30
ccs 5
cts 8
cp 0.625
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getLiteralValue() 0 4 1
A setLiteralValue() 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 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