1 | <?php namespace Anomaly\SettingsModule\Setting\Command; |
||
15 | class ModifyValue |
||
16 | { |
||
17 | |||
18 | use DispatchesJobs; |
||
19 | |||
20 | /** |
||
21 | * The setting value. |
||
22 | * |
||
23 | * @var mixed |
||
24 | */ |
||
25 | protected $value; |
||
26 | |||
27 | /** |
||
28 | * The setting instance. |
||
29 | * |
||
30 | * @var SettingInterface |
||
31 | */ |
||
32 | protected $setting; |
||
33 | |||
34 | /** |
||
35 | * Create a new ModifyValue instance. |
||
36 | * |
||
37 | * @param SettingInterface $setting |
||
38 | * @param $value |
||
39 | */ |
||
40 | function __construct(SettingInterface $setting, $value) |
||
45 | |||
46 | /** |
||
47 | * Handle the command. |
||
48 | * |
||
49 | * @return mixed |
||
50 | */ |
||
51 | public function handle() |
||
60 | } |
||
61 |
Adding explicit visibility (
private
,protected
, orpublic
) is generally recommend to communicate to other developers how, and from where this method is intended to be used.