If I have a class foo..
Code: Select all
class foo
{
public function foo_function()
{
}
}
Code: Select all
class bar extends foo
{
public function bar_function()
{
}
}
The way I need it to work is for me to create an instance of foo, then somehow add methods from bar to the foo instance.
Is this possible? If not I can create a workaround. I'm just looking for the best solution.