1: <?php declare(strict_types=1);
2:
3: namespace Salient\Core\Facade;
4:
5: use Salient\Core\ErrorHandler;
6:
7: /**
8: * A facade for ErrorHandler
9: *
10: * @method static ErrorHandler deregister() Deregister previously registered error and exception handlers
11: * @method static int getExitStatus() Get the exit status of the running script if it is terminating
12: * @method static void handleExitSignal(int $exitStatus) Report the exit status of the running script before it terminates on SIGTERM, SIGINT or SIGHUP
13: * @method static bool isRegistered() Check if error, exception and shutdown handlers are registered
14: * @method static bool isShuttingDown() Check if the running script is terminating
15: * @method static bool isShuttingDownOnError() Check if the running script is terminating after a fatal error, uncaught exception or exit signal
16: * @method static ErrorHandler register() Register error, exception and shutdown handlers
17: * @method static ErrorHandler silencePath(string $path, int $levels = 24576) Silence errors in a file or directory
18: * @method static ErrorHandler silencePattern(string $pattern, int $levels = 24576) Silence errors in paths that match a regular expression
19: *
20: * @api
21: *
22: * @extends Facade<ErrorHandler>
23: *
24: * @generated
25: */
26: final class Err extends Facade
27: {
28: /**
29: * @internal
30: */
31: protected static function getService()
32: {
33: return ErrorHandler::class;
34: }
35: }
36: