php 3种基本设计模式的组合使用
1.1 工厂模式,工厂方法或者类生成对象,而不是在代码直接new 复制 class Factory{ static function getDatabase(){ return new Mysql($host, $user, $pa...
1.1 工厂模式,工厂方法或者类生成对象,而不是在代码直接new 复制 class Factory{ static function getDatabase(){ return new Mysql($host, $user, $pa...