Base   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 26
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
eloc 5
c 1
b 0
f 0
dl 0
loc 26
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 SebastianFeldmann\Git.
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 SebastianFeldmann\Git\Operator;
13
14
use SebastianFeldmann\Cli\Command\Runner;
15
use SebastianFeldmann\Git\Repository;
16
17
/**
18
 * Class Base
19
 *
20
 * @package SebastianFeldmann\Git
21
 * @author  Sebastian Feldmann <[email protected]>
22
 * @link    https://github.com/sebastianfeldmann/git
23
 * @since   Class available since Release 0.9.0
24
 */
25
abstract class Base
26
{
27
    /**
28
     * Runner to execute git system calls.
29
     *
30
     * @var \SebastianFeldmann\Cli\Command\Runner
31
     */
32
    protected $runner;
33
34
    /**
35
     * Git repository to use.
36
     *
37
     * @var \SebastianFeldmann\Git\Repository
38
     */
39
    protected $repo;
40
41
    /**
42
     * Base constructor.
43
     *
44
     * @param \SebastianFeldmann\Cli\Command\Runner $runner
45 27
     * @param \SebastianFeldmann\Git\Repository     $repo
46
     */
47 27
    public function __construct(Runner $runner, Repository $repo)
48 27
    {
49 27
        $this->runner = $runner;
50
        $this->repo   = $repo;
51
    }
52
}
53