Completed
Push — master ( 5a0e22...3dcaa1 )
by Thomas Mauro
02:54
created

Client::getConnection()   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
namespace PamiModule\Options;
4
5
use Zend\Stdlib\AbstractOptions;
6
7
/**
8
 * Class Client.
9
 */
10
class Client extends AbstractOptions
11
{
12
    /**
13
     * Connection name.
14
     *
15
     * @var string
16
     */
17
    protected $connection;
18
    /**
19
     * Custom params.
20
     *
21
     * @var array
22
     */
23
    protected $params = [];
24
25
    /**
26
     * Connection name.
27
     *
28
     * @return string
29
     */
30 1
    public function getConnection()
31
    {
32 1
        return $this->connection;
33
    }
34
35
    /**
36
     * Set the connection name.
37
     *
38
     * @param string $connection Connection name
39
     *
40
     * @return $this
41
     */
42 1
    public function setConnection($connection)
43
    {
44 1
        $this->connection = $connection;
45
46 1
        return $this;
47
    }
48
49
    /**
50
     * Custom params.
51
     *
52
     * @return array
53
     */
54 1
    public function getParams()
55
    {
56 1
        return $this->params;
57
    }
58
59
    /**
60
     * Set the custom parameters.
61
     *
62
     * @param array $params Parameters
63
     *
64
     * @return $this
65
     */
66 1
    public function setParams(array $params)
67
    {
68 1
        $this->params = $params;
69
70 1
        return $this;
71
    }
72
}
73