MviCommand   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 22
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
1
<?php
2
/**
3
 * Magento Version Identification
4
 *
5
 * PHP version 5
6
 *
7
 * @author    Steve Robbins <[email protected]>
8
 * @copyright 2015 Steve Robbins
9
 * @license   http://creativecommons.org/licenses/by/4.0/ CC BY 4.0
10
 * @link      https://github.com/steverobbins/magento-version-identification-php
11
 */
12
13
namespace Mvi\Command;
14
15
use Symfony\Component\Console\Command\Command;
16
17
class MviCommand extends Command
18
{
19
    const DIR_MD5 = 'md5';
20
21
    /**
22
     * The base of this application
23
     *
24
     * @var string
25
     */
26
    protected $baseDir;
27
28
    /**
29
     * Constructor.
30
     *
31
     * @param string|null $name The name of the command; passing null means it must be set in configure()
32
     */
33
    public function __construct($name = null)
34
    {
35
        parent::__construct($name);
36
        $this->baseDir = realpath(__DIR__ . DS . '..' . DS . '..' . DS . '..');
37
    }
38
}
39