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