| Conditions | 2 |
| Paths | 2 |
| Total Lines | 9 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php namespace Anomaly\PreferencesModule\Preference\Command; |
||
| 50 | public function handle() |
||
| 51 | { |
||
| 52 | /* @var FieldType $type */ |
||
| 53 | if ($type = $this->dispatch(new GetValueFieldType($this->preference))) { |
||
| 54 | return $type->getModifier()->modify($this->value); |
||
| 55 | } |
||
| 56 | |||
| 57 | return $this->value; |
||
| 58 | } |
||
| 59 | } |
||
| 60 |
Adding explicit visibility (
private,protected, orpublic) is generally recommend to communicate to other developers how, and from where this method is intended to be used.