| Conditions | 5 |
| Paths | 7 |
| Total Lines | 15 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 11 | public function update($input) { |
||
| 12 | if($this->isProtected()) return false; |
||
| 13 | |||
| 14 | $value = is_null($this->local) ? $this->default : $this->local; |
||
| 15 | if($value == $input) return false; |
||
| 16 | |||
| 17 | if(!init_path($input)) { |
||
| 18 | $this->error = true; |
||
| 19 | $this->input = $input; |
||
| 20 | return false; |
||
| 21 | } |
||
| 22 | |||
| 23 | $this->local = $input; |
||
| 24 | return true; |
||
| 25 | } |
||
| 26 | } |
||
| 27 |