oop - PHP Object-nested data manipulation
I have two classes,
B, that work together, like this:
- Global scope instantiate
Bobject as a public property.
Carray as a public property.
How do I manipulate
Carray from global scope, without copying it, AND without explicitly pointing at
A->B->C for each operation?
PS: This is a minimal example. My chains could end up rather long, if no solution exists.