Say I have a static object:
class everything{
public static function must(){
return "go!";
}
}
When I do this:
echo everything::must();
I get the response:
go!
Which is the expected behavior.
Now, for my own reasons (legacy code support) I'd like to be able to call that static object from the return of a function call, in a syntax similar to this:
print accessorFunction()::must(); // Or something as close to it as possible
function accessorFunction(){
returns (reference to)everything; // Or something as close to it as possible
}
I hope I've made the question clear enough.
Thanks.