Completed
Push — commands ( 4282a7 )
by Arnaud
04:21
created

Config   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 3
dl 0
loc 11
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A processCommand() 0 8 2
1
<?php
2
/*
3
 * This file is part of the PHPoole package.
4
 *
5
 * Copyright (c) Arnaud Ligny <[email protected]>
6
 *
7
 * For the full copyright and license information, please view the LICENSE
8
 * file that was distributed with this source code.
9
 */
10
11
namespace PHPoole\Command;
12
13
class Config extends AbstractCommand
14
{
15
    public function processCommand()
16
    {
17
        try {
18
            print_r($this->getPHPoole()->getConfig()->getAllAsArray());
19
        } catch (\Exception $e) {
20
            throw new \Exception(sprintf($e->getMessage()));
21
        }
22
    }
23
}
24