Need help on Object extending

Hi is there a way to extend an already instantiated object with access to its properties?? For example:


class classA { $state }
class classB extends classA { $this->state = "set"; }

$class = new classB( ); // this will set the state for class A


// Now we add in a new class
// Is it possible to access classA's state??
class classC extends classA { echo $this->state;  } 

The first thing that comes to mind is runkit.

oh my, can i not do this with a not default extension? Does the cloning feature in PHP help in any way? I can’t seems to understand the clone feature.

I think I have to use the adaptor pattern.