<?php
class
Foo
{
public
$foo
;
function
__construct
(
)
{
$this
->
foo
=
new
Foo
(
)
;
}
function
do_something
(
)
{
$this
->
foo
->
do_foobar
(
)
;
}
}