摘要: state = $value; } } public function __get($param) { if ($param == 'state') { return $this->state; } } publ... 阅读全文
posted @ 2015-09-02 21:00 wy0314 阅读(123) 评论(0) 推荐(0)
摘要: _adaptee = new Adaptee(); } public function request() { $this->_adaptee->special_request(); }}$target = new Adapter();$target->request... 阅读全文
posted @ 2015-09-02 16:44 wy0314 阅读(114) 评论(0) 推荐(0)