设计模式之----------适配器模式
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://azwzsj.com/article/gjdohc.html