/ Published in: PHP
                    
                                        
To access a protected or private property, you need to create getter and setter
methods inside the class file.
                methods inside the class file.
                            
                                Expand |
                                Embed | Plain Text
                            
                        
                        Copy this code and paste it in your HTML
// methods defined here
public function getProductType()
{
return $this->_type;
}
public function setProductType($type)
{
$this->_type = $type;
}
Comments
 Subscribe to comments
                    Subscribe to comments
                
                