Completed
Pull Request — master (#17)
by Rougin
11:45
created

AbstractCommand::configure()   B

Complexity

Conditions 2
Paths 2

Size

Total Lines 34
Code Lines 28

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 27
CRAP Score 2

Importance

Changes 2
Bugs 0 Features 0
Metric Value
c 2
b 0
f 0
dl 0
loc 34
ccs 27
cts 27
cp 1
rs 8.8571
cc 2
eloc 28
nc 2
nop 0
crap 2
1
<?php
2
3
namespace Rougin\Combustor\Commands;
4
5
use Rougin\Describe\Describe;
6
use League\Flysystem\Filesystem;
7
8
/**
9
 * Abstract Command
10
 *
11
 * @package Combustor
12
 * @author  Rougin Royce Gutib <[email protected]>
13
 */
14
abstract class AbstractCommand extends \Symfony\Component\Console\Command\Command
15
{
16
    /**
17
     * @var \Rougin\Describe\Describe
18
     */
19
    protected $describe;
20
21
    /**
22
     * @var \League\Flysystem\Filesystem
23
     */
24
    protected $filesystem;
25
26
    /**
27
     * @var \Twig_Environment
28
     */
29
    protected $renderer;
30
31
    /**
32
     * @param \Rougin\Describe\Describe    $describe
33
     * @param \League\Flysystem\Filesystem $filesystem
34
     * @param \Twig_Environment            $renderer
35
     */
36 18
    public function __construct(Describe $describe, Filesystem $filesystem, \Twig_Environment $renderer)
37
    {
38 18
        parent::__construct();
39
40 18
        $this->describe   = $describe;
41 18
        $this->filesystem = $filesystem;
42 18
        $this->renderer   = $renderer;
43 18
    }
44
}
45