| 1 | <?php namespace Anomaly\SettingsModule\Setting\Command; |
||
| 13 | class GetSettingValueFieldType |
||
| 14 | { |
||
| 15 | |||
| 16 | /** |
||
| 17 | * The setting key. |
||
| 18 | * |
||
| 19 | * @var string |
||
| 20 | */ |
||
| 21 | protected $key; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * Create a new GetSettingValueFieldType instance. |
||
| 25 | * |
||
| 26 | * @param $key |
||
| 27 | */ |
||
| 28 | public function __construct($key) |
||
| 32 | |||
| 33 | /** |
||
| 34 | * Handle the command. |
||
| 35 | * |
||
| 36 | * @param SettingRepositoryInterface $settings |
||
| 37 | * @return \Anomaly\Streams\Platform\Addon\FieldType\FieldType|null |
||
| 38 | */ |
||
| 39 | public function handle(SettingRepositoryInterface $settings) |
||
| 47 | } |
||
| 48 |