设计模式 适配器模式
摘要:适配器模式就是不修改原有类的基础上 加一个中间转换层,以使其符合新需求说白了,就是对原有类的扩展,怎么扩展,继承呗例如下: 1 _error = $error; 9 }10 11 public function getError() {12 return $this-...
阅读全文
posted @ 2014-12-03 15:07
posted @ 2014-12-03 15:07
posted @ 2013-08-10 13:16
posted @ 2013-07-24 23:25
posted @ 2013-07-07 11:20
posted @ 2013-07-07 10:42
posted @ 2013-06-24 00:18