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

AbstractCommand   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 24
ccs 5
cts 5
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 7 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