I have two objects. Object A and B.
A has a method which returns B. And I want to call this dynamically so I use a string for calling a method inside of B like so:
$method = 'getB()->someMethod';
But if do this:
$a = new A();
$a->$method();
It doesn't work. Any ideas?