public function __construct($class) { parent::__construct('Class :class is read-only', array(':class' => get_class($class))); }
public function __construct($class, $property) { parent::__construct('Missing method or property :property for :class', array(':class' => get_class($class), ':property' => $property)); }
public static function register_handler() { self::$previous_handler = set_error_handler(array(__CLASS__, 'handle')); }