大橙子网站建设,新征程启航
为企业提供网站建设、域名注册、服务器等服务
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();