BaseCommand::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 1
1
<?php
2
3
namespace Geekish\Crap\Command;
4
5
use Geekish\Crap\CrapHelper;
6
use Symfony\Component\Console\Command\Command;
7
8
/**
9
 * Class BaseCommand
10
 * @package Geekish\Crap\Command
11
 */
12
abstract class BaseCommand extends Command
13
{
14
    /** @var CrapHelper */
15
    protected $helper;
16
17
    /**
18
     * @param CrapHelper $helper
19
     */
20
    public function __construct(CrapHelper $helper)
21
    {
22
        $this->helper = $helper;
23
24
        parent::__construct();
25
    }
26
}
27