摘要: builder = $builder; } public static function getInstance(Builder $builder){ if(self::$_instance == null){ self::$_instance = n... 阅读全文
posted @ 2015-04-01 16:38 起个名字七个字 阅读(274) 评论(0) 推荐(0)
摘要: 1 class Singleton { 2 3 private static $_instance = null; 4 private $name; 5 private function __construct(){ 6 $this->nam... 阅读全文
posted @ 2015-04-01 15:31 起个名字七个字 阅读(175) 评论(0) 推荐(0)