1 | <?php namespace Anomaly\SettingsModule\Setting\Command; |
||
15 | class GetDefaultValue implements SelfHandling |
||
16 | { |
||
17 | |||
18 | /** |
||
19 | * The qualified key of the setting. |
||
20 | * |
||
21 | * {namespace}::{key} |
||
22 | * |
||
23 | * @var string |
||
24 | */ |
||
25 | protected $key; |
||
26 | |||
27 | /** |
||
28 | * GetDefaultValue constructor. |
||
29 | * |
||
30 | * @param $key |
||
31 | */ |
||
32 | public function __construct($key) |
||
36 | |||
37 | /** |
||
38 | * Look for a default value from the config definition file. If it has one then return it, otherwise return null. |
||
39 | * |
||
40 | * @param Repository $config |
||
41 | * @param Resolver $resolver |
||
42 | * @return mixed |
||
43 | */ |
||
44 | public function handle(Repository $config, Resolver $resolver) |
||
54 | } |