Completed
Push — master ( 281eb8...04fe01 )
by Sebastian
10:51
created

Adapter   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 37
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
dl 0
loc 37
c 0
b 0
f 0
wmc 1
lcom 0
cbo 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
1
<?php
2
namespace phpbu\App\Configuration;
3
4
/**
5
 * Adapter Configuration
6
 *
7
 * @package    phpbu
8
 * @subpackage App
9
 * @author     Sebastian Feldmann <[email protected]>
10
 * @copyright  Sebastian Feldmann <[email protected]>
11
 * @license    https://opensource.org/licenses/MIT The MIT License (MIT)
12
 * @link       http://phpbu.de/
13
 * @since      Class available since Release 4.0.0
14
 */
15
class Adapter extends Optionized
16
{
17
    /**
18
     * Adapter type
19
     *
20
     * @var string
21
     */
22
    public $type;
23
24
    /**
25
     * Adapter name
26
     *
27
     * @var string
28
     */
29
    public $name;
30
31
    /**
32
     * Adapter options
33
     *
34
     * @var array
35
     */
36
    public $options;
37
38
    /**
39
     * Constructor
40
     *
41
     * @param string $type
42
     * @param string $name
43
     * @param array  $options
44
     */
45
    public function __construct($type, $name, array $options = [])
46
    {
47
        $this->type    = $type;
48
        $this->name    = $name;
49
        $this->setOptions($options);
50
    }
51
}
52