Completed
Pull Request — master (#29)
by Aleh
02:51
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 Padawan\Framework\Application;
6
use Padawan\Command\GenerateCommand;
7
use Padawan\Command\PluginCommand;
8
9
class Cli extends Application
10
{
11
    public function __construct()
12
    {
13
        parent::__construct("Padawan CLI");
14
    }
15
16
    /**
17
     * @return Container
18
     */
19
    public function getContainer()
20
    {
21
        return $this->container;
22
    }
23
24
    protected function loadCommands()
25
    {
26
        $this->add(new GenerateCommand);
27
        $this->add(new PluginCommand);
28
    }
29
}
30