It is generally recommended to explicitly declare the visibility for methods.
Adding explicit visibility (private, protected, or public) is generally
recommend to communicate to other developers how, and from where this method
is intended to be used.
Loading history...
40
{
41
$this->value = $value;
42
$this->preference = $preference;
43
}
44
45
/**
46
* Handle the command.
47
*
48
* @return mixed
49
*/
50
public function handle()
51
{
52
/* @var FieldType $type */
53
if ($type = $this->dispatch(new GetValueFieldType($this->preference))) {
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.