Completed
Push — master ( b54f87...bde51f )
by Beniamin
04:50
created

QueryParameter   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 48
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
dl 0
loc 48
c 0
b 0
f 0
wmc 4
lcom 0
cbo 0
ccs 10
cts 10
cp 1
rs 10

4 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A setValue() 0 6 1
A getName() 0 4 1
A getValue() 0 4 1
1
<?php
2
3
/**
4
 * This file is part of Phuria SQL Builder package.
5
 *
6
 * Copyright (c) 2016 Beniamin Jonatan Šimko
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace Phuria\SQLBuilder\Parameter;
13
14
/**
15
 * @author Beniamin Jonatan Šimko <[email protected]>
16
 */
17
class QueryParameter
18
{
19
    /**
20
     * @var $name
21
     */
22
    private $name;
23
24
    /**
25
     * @var $value
26
     */
27
    private $value;
28
29
    /**
30
     * @param string $name
31
     */
32 3
    public function __construct($name)
33
    {
34 3
        $this->name = $name;
35 3
    }
36
37
    /**
38
     * @param mixed $value
39
     *
40
     * @return $this
41
     */
42 3
    public function setValue($value)
43
    {
44 3
        $this->value = $value;
45
46 3
        return $this;
47
    }
48
49
    /**
50
     * @return mixed
51
     */
52 3
    public function getName()
53
    {
54 3
        return $this->name;
55
    }
56
57
    /**
58
     * @return mixed
59
     */
60 3
    public function getValue()
61
    {
62 3
        return $this->value;
63
    }
64
}