Application   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 10 1
1
<?php
2
namespace Nubs\PwMan;
3
4
use Symfony\Component\Console\Application as SymfonyApplication;
5
use Nubs\PwMan\Command\Get;
6
use Nubs\PwMan\Command\Set;
7
8
/**
9
 * The symfony application wrapper for PwMan.
10
 */
11
class Application extends SymfonyApplication
12
{
13
    /**
14
     * Initialize the pwman application with all of the different commands.
15
     *
16
     * @api
17
     */
18
    public function __construct()
19
    {
20
        parent::__construct('pwman', '0.1.0');
21
22
        $getCommand = new Get();
23
        $this->add($getCommand);
24
25
        $setCommand = new Set();
26
        $this->add($setCommand);
27
    }
28
}
29