Completed
Push — master ( d71541...d90736 )
by Rougin
03:48
created

AbstractCommand   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 0%
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 24
ccs 0
cts 6
cp 0
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 Rougin\Describe\Describe;
7
use Symfony\Component\Console\Command\Command;
8
9
/**
10
 * Abstract Command
11
 *
12
 * Extends the Symfony\Console\Command class with Twig's renderer.
13
 * 
14
 * @package Combustor
15
 * @author  Rougin Royce Gutib <[email protected]>
16
 */
17
abstract class AbstractCommand extends Command
18
{
19
    /**
20
     * @var \Rougin\Describe\Describe
21
     */
22
    protected $describe;
23
24
    /**
25
     * @var \Twig_Environment
26
     */
27
    protected $renderer;
28
29
    /**
30
     * @param \Twig_Environment         $renderer
31
     * @param \Rougin\Describe\Describe $describe
32
     */
33
    public function __construct(Describe $describe, Twig_Environment $renderer)
34
    {
35
        parent::__construct();
36
37
        $this->describe = $describe;
38
        $this->renderer = $renderer;
39
    }
40
}
41