Base::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 2
c 1
b 0
f 0
dl 0
loc 4
ccs 3
cts 3
cp 1
rs 10
cc 1
nc 1
nop 2
crap 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