Completed
Push — master ( 127bad...31a673 )
by Matthias
02:19
created

Commits::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 6
rs 9.4285
cc 1
eloc 3
nc 1
nop 4
1
<?php
2
3
namespace Cauditor\Runners;
4
5
use Cauditor\Analyzers\AnalyzerInterface;
6
use Cauditor\Api;
7
use Cauditor\Config;
8
9
/**
10
 * @author Matthias Mullie <[email protected]>
11
 * @copyright Copyright (c) 2016, Matthias Mullie. All rights reserved.
12
 * @license LICENSE MIT
13
 */
14
class Commits extends All implements RunnerInterface
15
{
16
    /**
17
     * @var array
18
     */
19
    protected $commits = array();
20
21
    /**
22
     * {@inheritdoc}
23
     *
24
     * @param array $commits
25
     */
26
    public function __construct(Config $config, Api $api, AnalyzerInterface $analyzer, array $commits)
27
    {
28
        parent::__construct($config, $api, $analyzer);
29
30
        $this->commits = $commits;
31
    }
32
33
    /**
34
     * @return string[]
35
     */
36
    protected function getCommits()
37
    {
38
        return $this->commits;
39
    }
40
}
41