Conditions | 4 |
Paths | 4 |
Total Lines | 19 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 20 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
43 | public function __set($name, $value) |
||
44 | { |
||
45 | if (StringHelper::startsWith($name, 'override-')) { |
||
46 | $remainder = StringHelper::removeLeft($name, 'override-'); |
||
47 | |||
48 | if ($remainder) { |
||
49 | if ($value) { |
||
50 | $this->overrides[$remainder] = true; |
||
51 | unset($this->inherited[$remainder]); |
||
52 | } else { |
||
53 | $this->inherited[$remainder] = true; |
||
54 | unset($this->overrides[$remainder]); |
||
55 | } |
||
56 | } |
||
57 | |||
58 | return; |
||
59 | } |
||
60 | |||
61 | parent::__set($name, $value); |
||
62 | } |
||
64 |