All Questions
1 question
1
vote
1
answer
618
views
Should the function that operates on the object return it?
Should the function that operates on the object return it?
Shortened example:
class Example1
{
public function method($a, $b)
{
$result = new Result($a, $b);
$this->...