快上网专注成都网站设计 成都网站制作 成都网站建设
成都网站建设公司服务热线:028-86922220

网站建设知识

十年网站开发经验 + 多家企业客户 + 靠谱的建站团队

量身定制 + 运营维护+专业推广+无忧售后,网站问题一站解决

php设计模式之——建造者模式

_age = $age;
	}
	
	public function setName($name){
		$this->_name = $name;
	}
	
	public function setProv($prov){
		$this->_prov = $prov;
	}
	
	public function getMan(){
		echo $this->_age.$this->_name.$this->prov;
	}
}

class Building{
	protected $man = '';
	public function __construct(){
		$this->man = new UserInfo();
	}
	
	public function buildman($array){
		$this->man->setAge($array['age');
		$this->man->setAge($array['name');
		$this->man->setAge($array['prov');
		
	}
	
	public function getman(){
		$this->man->getMan();
	}
}

文章标题:php设计模式之——建造者模式
网页URL:http://6mz.cn/article/jcehod.html

其他资讯