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