设计模式之----------适配器模式
adaptee=$adaptee;
}
public function simpleFunction1(){
echo $this->adaptee->simpleFunction1();
}
public function simpleFunction2(){
echo 'Adapter Simple ';
}
}
class client{
public static function main(){
$adaptee = new Adaptee();
$adapter = new Adapter($adaptee);
$adapter->simpleFunction1();
$adapter->simpleFunction2();
}
}
client::main();
分享标题:设计模式之----------适配器模式
当前路径:http://www.scyingshan.cn/article/gjdohc.html


咨询
建站咨询
