NYCPHP Meetup

NYPHP.org

[nycphp-talk] Multi-Inheritance in PHP 5

csnyder chsnyder at gmail.com
Mon Oct 11 09:01:56 EDT 2004


On Sun, 10 Oct 2004 20:00:17 -0400, George Schlossnagle
<george at omniti.com> wrote:

> 4) you can use the delegation pattern and delegate that method to the
> class that implements it. 

Ah, so:

class charlie {
  function kickBall() {
    $f = new football();
    return $f->kickBall( $this );
  }
}

That's a better option, I agree.



More information about the talk mailing list