Passed
Pull Request — master (#346)
by Mirko
08:32
created

AbstractCommand   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 21
rs 10
wmc 1
lcom 0
cbo 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
1
<?php
2
/***************************************************************************
3
 *  For license information see doc/license.txt
4
 *
5
 *  Unicode Reminder メモ
6
 ***************************************************************************/
7
8
namespace AppBundle\Command;
9
10
use Symfony\Component\Console\Command\Command;
11
12
abstract class AbstractCommand extends Command
13
{
14
    const CODE_SUCCESS  = 0;
15
    const CODE_ERROR    = 1;
16
    const CODE_WARNING  = 2;
17
18
    /**
19
     * @var string
20
     */
21
    protected $rootPath;
22
23
    /**
24
     * @param string|null $name
25
     */
26
    public function __construct($name = null)
27
    {
28
        parent::__construct($name);
29
30
        $this->rootPath = realpath(__DIR__ . '/../../../');
31
    }
32
}
33