Handles dead code such as methods marked for deprecation. More...
Static Public Member Functions | |
static | deprecation_kills () |
Should we kill the current process? Typically used in CI or in development environments. | |
static | deprecated ($thing, $message="") |
You want to soft-deprecate something - calling deprecated() from any Ninja method in production will be a noop, but the call will error out when in development mode. |
Handles dead code such as methods marked for deprecation.
If you want to implement support for feature-flags, this could be the place for that supporting code.
static flag::deprecated | ( | $ | thing, | |
$ | message = "" | |||
) | [static] |
You want to soft-deprecate something - calling deprecated() from any Ninja method in production will be a noop, but the call will error out when in development mode.
'Development mode' is defined by
$thing | string | |
$message | string = "" |
DeprecationException |
static flag::deprecation_kills | ( | ) | [static] |
Should we kill the current process? Typically used in CI or in development environments.