Hi. How do you call this design pattern?
class Foo {
protected $delegates = array();
//...
public function __call($method,$argv) {
//call $this->$something->$method($argv), where $something is a mapping from $this->delegates
}
}
I can speculate, but I'm not sure, so I wanted to ask you.