Source   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
eloc 4
dl 0
loc 19
ccs 3
cts 3
cp 1
rs 10
c 0
b 0
f 0
wmc 1

1 Method

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