I really dont know what you are trying to do here, but I here is a code snippet:
class ObjectBlah {
var $value1;
var $value2;
function ObjectBlah($bleh1, $bleh2) {
$this->value1 = $bleh1;
$this->value2 = $bleh2;
}
}
class Broker {
var $Object;
function Broker($bleh1, $bleh2) {
$this->Object = new ObjectBlah($bleh1, $bleh2);
}
function getObject() {
return $this->Object;
}
}
$BrokerObj = new Broker("value one", "value two");
$NewObject = $BrokerObj->getObject();
if(is_object($NewObject)) {
echo "<pre>\n";
print_r($NewObject);
echo "</pre>\n";
}
And the output of this:
objectblah object
(
[value1] => value one
[value2] => value two
)
this works fine as you can see, but Im not sure of what you want to achieve