适配器模式之接口适配

action2', '
'; } } class Adapter2 extends AbstractAdapter { public function action3() { echo 'call action3', '
'; } } // test code $a1 = new Adapter(); $a1->action2(); $a2 = new Adapter2(); $a2->action3();

你可能感兴趣的:(php,设计模式)