php设计模式 prototype (原型模式) 作者: shuiguang 时间: 2015-11-15 分类: php开发 没有评论 php有23种设计模式,你全都知道吗?下面用代码介绍原型模式(prototype模式)<?php /** * 原型模式 * * 用原型实例指定创建对象的种类.并且通过拷贝这个原型来创建新的对象 * */ abstract class Prototype { private $_id = null; public funct... 阅读全文