Completed
Push — master ( 59763f...201c15 )
by Fran
05:04 queued 15s
created

CloudFrameworkApp   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Test Coverage

Coverage 50%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
c 1
b 0
f 0
lcom 0
cbo 2
dl 0
loc 24
ccs 3
cts 6
cp 0.5
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A run() 0 4 1
1
<?php
2
namespace CloudFramework;
3
use CloudFramework\Tool\RequestParser;
4
use CloudFramework\Patterns\Singleton;
5
6
/**
7
 * Class CloudFramework
8
 * @package CloudFramework\Core
9
 */
10
class CloudFrameworkApp extends Singleton
11
{
12
13
    /**
14
     * @var string
15
     */
16
    private $app_name;
17
18
    /**
19
     * @var \CloudFramework\Tool\ConfigLoader $config
20
     */
21
    protected $config;
22
23
24 1
    public function __construct($name = 'CloudFramework', $configFile = '')
0 ignored issues
show
Unused Code introduced by
The parameter $configFile is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
25
    {
26 1
        $this->app_name = $name;
27 1
    }
28
29
    public function run()
30
    {
31
        echo "Hello " . RequestParser::getQueryParam('name');
32
    }
33
}
34