How is this design pattern called?
How do you call this design pattern?
class Foo {
protected $delegates = array();
//...
public function __call($meth开发者_如何学运维od,$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.
The aptly named Delegation pattern?
精彩评论