For example record like this: property3->property2->property1 is understood for me, this means that property of class, is object of another class, for example:
class a {
public $property1 = "some";
}
class b {
function __construct () {
$this->property2 = new a();
}
}
$obj = new b();
echo $obj->property2->property1;
this understood. but I can not understood records like this: method1()->method2()->method3()
can you post simple example, who using these records?
A simple example :
Or with several classes :