Completed
Push — master ( 5bda77...cb2c73 )
by Aleh
10s
created

CliCommand   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getContainer() 0 4 1
A get() 0 4 1
A getApplication() 0 4 1
1
<?php
2
3
namespace Padawan\Command;
4
5
use Symfony\Component\Console\Command\Command;
6
use Padawan\Framework\Application\Cli;
7
8
abstract class CliCommand extends Command
9
{
10
    public function getContainer()
11
    {
12
        return $this->getApplication()->getContainer();
13
    }
14
15
    public function get($name)
16
    {
17
        return $this->getContainer()->get($name);
18
    }
19
20
    /**
21
     * @return Cli
22
     */
23
    public function getApplication()
24
    {
25
        return parent::getApplication();
26
    }
27
}
28