OpenTelemetry PHP

Util
in package

Table of Contents

Constants

DEFAULT_ERROR_LEVEL  = E_USER_NOTICE
E_NONE  = 0
ERROR_LEVELS  = [self::E_NONE, E_USER_DEPRECATED, E_USER_NOTICE, E_USER_WARNING, E_USER_ERROR]

Properties

$errorLevel  : int

Methods

getErrorLevel()  : int
setErrorLevel()  : void
triggerClassDeprecationNotice()  : void
triggerMethodDeprecationNotice()  : void
validateErrorLevel()  : void

Constants

DEFAULT_ERROR_LEVEL

public mixed DEFAULT_ERROR_LEVEL = E_USER_NOTICE

E_NONE

public mixed E_NONE = 0

ERROR_LEVELS

public mixed ERROR_LEVELS = [self::E_NONE, E_USER_DEPRECATED, E_USER_NOTICE, E_USER_WARNING, E_USER_ERROR]

Properties

$errorLevel

private static int $errorLevel = E_USER_NOTICE

Methods

getErrorLevel()

public static getErrorLevel() : int
Return values
int

setErrorLevel()

public static setErrorLevel([int $errorLevel = E_USER_NOTICE ]) : void
Parameters
$errorLevel : int = E_USER_NOTICE

triggerClassDeprecationNotice()

public static triggerClassDeprecationNotice(string $className[, string|null $alternativeClassName = null ]) : void
Parameters
$className : string
$alternativeClassName : string|null = null
Tags
psalm-suppress

ArgumentTypeCoercion

triggerMethodDeprecationNotice()

public static triggerMethodDeprecationNotice(string $methodName[, string|null $alternativeMethodName = null ][, string|null $alternativeClassName = null ]) : void
Parameters
$methodName : string
$alternativeMethodName : string|null = null
$alternativeClassName : string|null = null
Tags
psalm-suppress

ArgumentTypeCoercion

validateErrorLevel()

private static validateErrorLevel(int $errorLevel) : void
Parameters
$errorLevel : int

        
On this page

Search results