1 | <?php namespace Anomaly\SettingsModule\Setting\Command; |
||
14 | class GetSettingDefaultValue implements SelfHandling |
||
15 | { |
||
16 | /** |
||
17 | * The qualified key of the setting. |
||
18 | * Namespace . :: . key |
||
19 | * |
||
20 | * @var |
||
21 | */ |
||
22 | protected $settingKey; |
||
23 | |||
24 | /** |
||
25 | * GetSettingDefaultValue constructor. |
||
26 | * |
||
27 | * @param $settingKey |
||
28 | */ |
||
29 | public function __construct($settingKey) |
||
33 | |||
34 | /** |
||
35 | * Look for a default value from the config definition file. If it has one then return it, otherwise return null. |
||
36 | * |
||
37 | * @param Repository $config |
||
38 | * @param Container $container |
||
39 | * @return mixed |
||
40 | */ |
||
41 | public function handle(Repository $config, Container $container) |
||
63 | } |