RepositoryAware   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

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

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\Runner;
13
14
use CaptainHook\App\Config;
15
use CaptainHook\App\Console\IO;
16
use CaptainHook\App\Runner;
17
use SebastianFeldmann\Git\Repository;
18
19
/**
20
 * Class HookHandler
21
 *
22
 * @package CaptainHook
23
 * @author  Sebastian Feldmann <[email protected]>
24
 * @link    https://github.com/captainhook-git/captainhook
25
 * @since   Class available since Release 0.9.0
26
 */
27
abstract class RepositoryAware extends Runner
28
{
29
    /**
30
     * Git repository.
31
     *
32
     * @var \SebastianFeldmann\Git\Repository
33
     */
34
    protected $repository;
35
36
    /**
37
     * HookHandler constructor.
38
     *
39
     * @param \CaptainHook\App\Console\IO     $io
40
     * @param \CaptainHook\App\Config         $config
41
     * @param \SebastianFeldmann\Git\Repository $repository
42
     */
43 92
    public function __construct(IO $io, Config $config, Repository $repository)
44
    {
45 92
        parent::__construct($io, $config);
46 92
        $this->repository = $repository;
47
    }
48
}
49