Test Setup Failed
Push — master ( c81089...298000 )
by DeGracia
02:03
created

Parameters   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getArguments() 0 4 1
A getOption() 0 4 1
1
<?php
2
3
namespace DeGraciaMathieu\Clike;
4
5
class Parameters {
6
7
    /**
8
     * @param array $config
9
     */
10
    public function __construct(array $config)
11
    {
12
        $this->config = $config;
0 ignored issues
show
Bug introduced by
The property config does not exist. Did you maybe forget to declare it?

In PHP it is possible to write to properties without declaring them. For example, the following is perfectly valid PHP code:

class MyClass { }

$x = new MyClass();
$x->foo = true;

Generally, it is a good practice to explictly declare properties to avoid accidental typos and provide IDE auto-completion:

class MyClass {
    public $foo;
}

$x = new MyClass();
$x->foo = true;
Loading history...
13
    }
14
15
    public function getArguments()
16
    {
17
18
    }
19
20
    public function getOption()
21
    {
22
        
23
    }    
24
}
25