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