Completed
Pull Request — master (#165)
by Paul
03:21
created

AbstractCommand   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 10
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A getServiceManager() 0 4 1
1
<?php
2
/**
3
 * This file is part of the PPI Framework.
4
 *
5
 * @copyright  Copyright (c) 2011-2016 Paul Dragoonis <[email protected]>
6
 * @license    http://opensource.org/licenses/mit-license.php MIT
7
 *
8
 * @link       http://www.ppi.io
9
 */
10
11
namespace PPI\Framework\Console\Command;
12
13
use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand;
14
15
/**
16
 * Base class for all commands.
17
 *
18
 * @author      Vítor Brandão <[email protected]>
19
 */
20
abstract class AbstractCommand extends ContainerAwareCommand
21
{
22
    /**
23
     * @return \Zend\ServiceManager\ServiceManagerInterface
24
     */
25
    protected function getServiceManager()
26
    {
27
        return $this->getContainer();
28
    }
29
}
30