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...
25
$this->environment = $environment;
26
}
27
28
/**
29
* @param string $environment
30
*
31
* @return HeaderCompilerFactory
32
*/
33
public function setEnvironment(string $environment) : HeaderCompilerFactory {
34
$this->environment = $environment;
35
36
return $this;
37
}
38
39
/**
40
* @param string $environment
41
* @param HeaderCompiler $headerCompiler
42
*
43
* @return HeaderCompilerFactory
44
*/
45
public function addHeaderCompiler(string $environment, HeaderCompiler $headerCompiler) : HeaderCompilerFactory {
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.