Passed
Push — master ( 69774c...de7969 )
by Sebastian
02:46
created

Runner   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 28
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
1
<?php
2
3
/**
4
 * This file is part of CaptainHook
5
 *
6
 * (c) Sebastian Feldmann <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace CaptainHook\App;
13
14
use CaptainHook\App\Console\IO;
15
16
/**
17
 * Class Runner
18
 *
19
 * @package CaptainHook
20
 * @author  Sebastian Feldmann <[email protected]>
21
 * @link    https://github.com/captainhookphp/captainhook
22
 * @since   Class available since Release 0.9.0
23
 */
24
abstract class Runner
25
{
26
    /**
27
     * @var \CaptainHook\App\Console\IO
28
     */
29
    protected $io;
30
31
    /**
32
     * @var \CaptainHook\App\Config
33
     */
34
    protected $config;
35
36
    /**
37
     * Installer constructor.
38
     *
39
     * @param \CaptainHook\App\Console\IO $io
40 41
     * @param \CaptainHook\App\Config     $config
41
     */
42 41
    public function __construct(IO $io, Config $config)
43 41
    {
44 41
        $this->io     = $io;
45
        $this->config = $config;
46
    }
47
48
    /**
49
     * Executes the Runner.
50
     */
51
    abstract public function run(): void;
52
}
53