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

AbstractCommand::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 3
c 1
b 0
f 0
nc 1
nop 1
dl 0
loc 6
rs 9.4285
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