Config::__unset()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 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