이 디자인 패턴을 어떻게 정의합니까?이 디자인 패턴은 어떻게 불립니까?
class Foo {
protected $delegates = array();
//...
public function __call($method,$argv) {
//call $this->$something->$method($argv), where $something is a mapping from $this->delegates
}
}
내가 추측 할 수는 있지만 잘 모르겠다. 그래서 나는 너에게 묻고 싶다.
회원의 이름 때문에 말하고있는 것입니까, 아니면 정말로 그 이름을 올바르게 지었습니까? :) – Flavius
당신은 당신의 예제에서 'delegates'라는 단어를 사용했기 때문에. :) – Amber
누군가 확인 했습니까? 나는 내 이름 붙이기 대회를 믿지 않는다 :-) – Flavius