I\'m trying to understand this code, and when I arrived at the final line, I didn\'t get it. :(
Can I have your help in order to find out, what does re
you just can create a function chain
class My_class
{
public function method1($param)
{
/*
* logic here
*/
return $this;
}
public function method2($param)
{
/*
* logic here
*/
return $this;
}
public function method3($param)
{
/*
* logic here
*/
return $this;
}
}
so you can use this
My_class obj = new My_class();
$return = obj->method1($param)->method2($param)->method3($param);