View Single Post
  #1 (permalink)  
Old January 8th, 2010, 09:26 PM
restless restless is offline
Registered User
 
Join Date: Jun 2009
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default Qns regarding Builder Pattern example

With reference to productBuilder class in page 35, i wonder what does the statement
Code:
$this->_xml = $configs;
do?

or should the build() method be

Code:
public function build(){
 $this->_product->setSize($this->_xml['size']);
 $this->_product->setType($this->_xml['type']);
 $this->_product->setColor($this->_xml['color']);
}
instead?
Reply With Quote