| Conditions | 2 |
| Paths | 2 |
| Total Lines | 9 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php namespace Anomaly\PreferencesModule\Preference\Command; |
||
| 42 | public function handle() |
||
| 43 | { |
||
| 44 | /* @var FieldType $type */ |
||
| 45 | if ($type = $this->dispatch(new GetValueFieldType($this->preference))) { |
||
| 46 | return $type->getPresenter(); |
||
| 47 | } |
||
| 48 | |||
| 49 | return array_get($this->preference->getAttributes(), 'value'); |
||
| 50 | } |
||
| 51 | } |
||
| 52 |