PHP设计模式之工厂模式
摘要:
"; } public function connect() {} public function exec() {}}class PostgreDB implements DB{ public function __construct() { echo"Postgre db"; } public function connect() {} public function exec() {}}class MssqlDB implements DB{ public function __construct() { echo"mssql db"; 阅读全文
posted @ 2013-07-28 10:38 我是Peter 阅读(204) 评论(0) 推荐(0) 编辑