Completed
Push — master ( aa9657...bb9832 )
by Sebastian
05:21
created

Runner   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 36
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

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

2 Methods

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