DrestManagerHelper::getName()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
/**
3
 * This file is part of the Drest package.
4
 *
5
 * For the full copyright and license information, please view the LICENSE
6
 * file that was distributed with this source code.
7
 *
8
 * @author Lee Davis
9
 * @copyright Copyright (c) Lee Davis <@leedavis81>
10
 * @link https://github.com/leedavis81/drest/blob/master/LICENSE
11
 * @license http://opensource.org/licenses/MIT The MIT X License (MIT)
12
 */
13
namespace Drest\Tools\Console\Helper;
14
15
use Drest\Manager;
16
use Symfony\Component\Console\Helper\Helper;
17
18
/**
19
 * Drest Manager Helper
20
 */
21
class DrestManagerHelper extends Helper
22
{
23
    /**
24
     * Drest Manager
25
     * @var Manager $dm
26
     */
27
    protected $dm;
28
29
    /**
30
     * @param Manager $dm
31
     */
32
    public function __construct(Manager $dm)
33
    {
34
        $this->dm = $dm;
35
    }
36
37
    /**
38
     * Get Drest Manager
39
     * @return Manager
40
     */
41
    public function getDrestManager()
42
    {
43
        return $this->dm;
44
    }
45
46
    /**
47
     * @see \Symfony\Component\Console\Helper\HelperInterface::getName()
48
     */
49
    public function getName()
50
    {
51
        return 'drestManager';
52
    }
53
}
54