Exemplo n.º 1
0
 /**
  * Property setter interceptor.
  *
  * @param string $property The property to set
  * @param string $value    The property value
  * 
  * @return mixed
  */
 public function __set($property, $value)
 {
     if ($property == 'reason') {
         throw new HTTP_Response2_Exception('"reason" is a read-only property');
     }
     parent::__set($property, $value);
 }