1 | <?php namespace Anomaly\ConfigurationModule\Configuration\Command; |
||
14 | class ModifyValue |
||
15 | { |
||
16 | |||
17 | use DispatchesJobs; |
||
18 | |||
19 | /** |
||
20 | * The configuration value. |
||
21 | * |
||
22 | * @var mixed |
||
23 | */ |
||
24 | protected $value; |
||
25 | |||
26 | /** |
||
27 | * The configuration instance. |
||
28 | * |
||
29 | * @var ConfigurationInterface |
||
30 | */ |
||
31 | protected $configuration; |
||
32 | |||
33 | /** |
||
34 | * Create a new ModifyValue instance. |
||
35 | * |
||
36 | * @param ConfigurationInterface $configuration |
||
37 | * @param $value |
||
38 | */ |
||
39 | function __construct(ConfigurationInterface $configuration, $value) |
||
44 | |||
45 | /** |
||
46 | * Handle the command. |
||
47 | * |
||
48 | * @return mixed |
||
49 | */ |
||
50 | public function handle() |
||
59 | } |
||
60 |
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.