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

Client   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 63
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

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

4 Methods

Rating   Name   Duplication   Size   Complexity  
A getConnection() 0 4 1
A setConnection() 0 6 1
A getParams() 0 4 1
A setParams() 0 6 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