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

Cli   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Importance

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

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getContainer() 0 4 1
A loadCommands() 0 5 1
1
<?php
2
3
namespace Padawan\Framework\Application;
4
5
use DI\Container;
6
use Padawan\Framework\Application;
7
use Padawan\Command\GenerateCommand;
8
use Padawan\Command\PluginCommand;
9
10
class Cli extends Application
11
{
12
    public function __construct()
13
    {
14
        parent::__construct("Padawan CLI");
15
    }
16
17
    /**
18
     * @return Container
19
     */
20
    public function getContainer()
21
    {
22
        return $this->container;
23
    }
24
25
    protected function loadCommands()
26
    {
27
        $this->add(new GenerateCommand);
28
        $this->add(new PluginCommand);
29
    }
30
}
31