Completed
Push — master ( da9ea2...cfe8fe )
by Rougin
08:08
created

AbstractCommand::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

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