Process   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 40
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 6
dl 0
loc 40
ccs 4
cts 4
cp 1
rs 10
c 1
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
1
<?php
2
namespace phpbu\App\Runner;
3
4
use phpbu\App\Configuration;
5
use phpbu\App\Result;
6
use phpbu\App\Factory;
7
8
/**
9
 * Runner base class.
10
 *
11
 * @package    phpbu
12
 * @subpackage Backup
13
 * @author     Sebastian Feldmann <[email protected]>
14
 * @copyright  Sebastian Feldmann <[email protected]>
15
 * @license    https://opensource.org/licenses/MIT The MIT License (MIT)
16
 * @link       https://phpbu.de/
17
 * @since      Class available since Release 5.1.0
18
 * @internal
19
 */
20
abstract class Process
21
{
22
    /**
23
     * @var \phpbu\App\Factory
24
     */
25
    protected $factory;
26
27
    /**
28
     * phpbu Result
29
     *
30
     * @var \phpbu\App\Result
31
     */
32
    protected $result;
33
34
    /**
35
     * phpbu Configuration
36
     *
37
     * @var \phpbu\App\Configuration
38
     */
39
    protected $configuration;
40
41
    /**
42
     * Backup constructor.
43
     *
44
     * @param \phpbu\App\Factory $factory
45
     * @param \phpbu\App\Result  $result
46
     */
47 16
    public function __construct(Factory $factory, Result $result)
48
    {
49 16
        $this->factory = $factory;
50 16
        $this->result  = $result;
51 16
    }
52
53
    /**
54
     * Execution blueprint.
55
     *
56
     * @param  \phpbu\App\Configuration $configuration
57
     * @return \phpbu\App\Result
58
     */
59
    abstract public function run(Configuration $configuration) : Result;
60
}
61