Passed
Push — master ( 7bee4d...457c92 )
by Sebastian
01:54
created

RepositoryAware   A

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