I have two classes, A and B, that work together, like this:
- Global scope instantiate
Aobject. Aobject instantiateBobject as a public property.Bobject containsCarray as a public property.
QUESTION:
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.
Cfrom classA- createA::getC { return A->B->C; }If you need to set values ofCfrom classA- createA::setC($key, $value) { A->B->C[$key] = $value; }