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

CloudFrameworkApp::run()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
ccs 0
cts 3
cp 0
rs 10
cc 1
eloc 2
nc 1
nop 0
crap 2
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