I did see this question but it doesn't fully answer the question I have.
If I do this:
$obj1 = new ObjectOne();
and then this:
$obj2 = new ObjectTwo($obj1);
$obj2->someFunction();
Where someFunction()
modifies the attributes of the object passed into it, will both $obj1
and $obj2->passedInObject
both in effect be updated?