php设计模式之——建造者模式-成都快上网建站

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://kswjz.com/article/jcehod.html
扫二维码与项目经理沟通

我们在微信上24小时期待你的声音

解答本文疑问/技术咨询/运营咨询/技术建议/互联网交流