In general, there was an argument about how to write a class. I pass parameters to class methods, for example
$myClass->search($str, $param1, $param2)
and comrade says that all methods should be done without parameters, and everything should be taken from properties. Those. before calling the class method, set it
$myClass->str = $str; $myClass->param1 = $param1;
and cause
$myClass->search();
and inside search already take these parameters from
$this->str
etc. This method seems to me very inconvenient, but the comrade (he is the boss))) motivates by the fact that various optional parameters will appear for the methods, and then the prototype recording and the call itself will look cumbersome.
Who writes how?