深入讨论PHP5对象复制技术(6)
	   来源:未知 责任编辑:责任编辑 发表时间:2014-01-25 11:34 点击:次
	   
	 
		 
	
	
	  
	  
	  
	
		      
	
		    /** 
	
		     * 构造函数中加载遥控器对象 
	
		     */  
	
		    public function __construct()  
	
		    {  
	
		        $this->setControl(new Telecontrol());  
	
		    }  
	
		  
	
		    /** 
	
		     * 设置遥控器对象 
	
		     */  
	
		    public function setControl(Telecontrol $control)  
	
		    {  
	
		        $this->_control = $control;  
	
		        return $this;  
	
		    }  
	
		      
	
		    /** 
	
		     * 返回遥控器对象 
	
		     */  
	
		    public function getControl()  
	
		    {  
	
		        return $this->_control;  
	
		    }      
	
		      
	
		    /** 
	
		     * 返回电视外观颜色 
	
		     */  
	
		    public function getColor()  
	
		    {  
	
		        return $this->_color;  
	
		    }  
	
		      
	
		    /** 
	
		     * 设置电视机外观颜色 
	
		     */  
	
		    public function setColor($color)  
	
		    {  
	
		        $this->_color = (string)$color;  
	
		        return $this;  
	
		    }  
	
		  
	
		   /** 
	
		     * 返回电视机编号 
	
		     */  
	
		    public function getIdentity()