/** * Sets the error handler * * @param WSErrorHandler Error handler */ public static function setErrorHandler($handler) { if ($handler instanceof WSErrorHandler) { self::$_handler = $handler; } }