I have a class that has a method that returns a reference to an object: -
Object1->getObject2();
Now, I want to call Object 2's doSomething() method: -
Object1->getObject2()->doSomething();
This gets a parse error in PHP though! Is this type of calling convention supported in PHP? Or must I do this: -
Object2 =& Object1->getObject2();
Object2->doSomething();
Thanks in advance