Config   A
last analyzed

Complexity

Total Complexity 5

Size/Duplication

Total Lines 26
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 5
lcom 0
cbo 1
dl 0
loc 26
rs 10
c 0
b 0
f 0

4 Methods

Rating   Name   Duplication   Size   Complexity  
A __get() 0 6 2
A __set() 0 4 1
A __isset() 0 4 1
A __unset() 0 4 1
1
<?php
2
3
namespace SugaredRim\PhpCsFixer;
4
5
/**
6
 * @property bool $diff
7
 * @property bool $dry-run
8
 */
9
class Config extends \PhpCsFixer\Config
10
{
11
    private $extended = array();
12
13
    public function __get($name)
14
    {
15
        if (isset($this->extended[$name])) {
16
            return $this->extended[$name];
17
        }
18
    }
19
20
    public function __set($name, $value)
21
    {
22
        $this->extended[$name] = $value;
23
    }
24
25
    public function __isset($name)
26
    {
27
        return isset($this->extended[$name]);
28
    }
29
30
    public function __unset($name)
31
    {
32
        unset($this->extended[$name]);
33
    }
34
}
35