Completed
Pull Request — master (#29)
by Aleh
06:28
created

Cli   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

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

3 Methods

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