Completed
Push — master ( e25a2e...09c2a6 )
by Beniamin
03:10
created

QueryParameter::getValue()   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 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
cc 1
eloc 2
nc 1
nop 0
crap 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\QueryBuilder\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 2
    public function __construct($name)
33
    {
34 2
        $this->name = $name;
35 2
    }
36
37
    /**
38
     * @param mixed $value
39
     *
40
     * @return $this
41
     */
42 2
    public function setValue($value)
43
    {
44 2
        $this->value = $value;
45
46 2
        return $this;
47
    }
48
49
    /**
50
     * @return mixed
51
     */
52 2
    public function getName()
53
    {
54 2
        return $this->name;
55
    }
56
57
    /**
58
     * @return mixed
59
     */
60 2
    public function getValue()
61
    {
62 2
        return $this->value;
63
    }
64
}