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