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...
30
{
31
$this->user = $user;
32
}
33
34
/**
35
* Handle the command.
36
*
37
* @param UserRepositoryInterface $users
38
* @return bool
39
*/
40
public function handle(UserRepositoryInterface $users)
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.