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

CliCommand::getContainer()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

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