Completed
Push — master ( 3952c5...023801 )
by Sebastian
02:12
created

Base::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 4
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 5
ccs 4
cts 4
cp 1
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 2
crap 1
1
<?php
2
/**
3
 * This file is part of SebastianFeldmann\Git.
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\Git\Operator;
11
12
use SebastianFeldmann\Cli\Process\Runner;
13
use SebastianFeldmann\Git\Repository;
14
15
abstract class Base
16
{
17
    /**
18
     * @var \SebastianFeldmann\Cli\Command\Runner
19
     */
20
    protected $runner;
21
22
    /**
23
     * @var \SebastianFeldmann\Git\Repository
24
     */
25
    protected $repo;
26
27
    /**
28
     * Base constructor.
29
     *
30
     * @param \SebastianFeldmann\Cli\Process\Runner $runner
31
     * @param \SebastianFeldmann\Git\Repository     $repo
32
     */
33 7
    public function __construct(Runner $runner, Repository $repo)
34
    {
35 7
        $this->runner = $runner;
0 ignored issues
show
Documentation Bug introduced by
It seems like $runner of type object<SebastianFeldmann\Cli\Process\Runner> is incompatible with the declared type object<SebastianFeldmann\Cli\Command\Runner> of property $runner.

Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.

Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..

Loading history...
36 7
        $this->repo   = $repo;
37 7
    }
38
}
39