Свойство | Тип | Описание | |
---|---|---|---|
$_closureCache | array | Used for temporary closure caching. |
Метод | Описание | |
---|---|---|
export ( mixed $var ) : string | Returns a parseable string representation of a variable. | |
trace ( array $options = [] ) : string | array | null | Outputs a stack trace based on the supplied options. |
Метод | Описание | |
---|---|---|
_closureDef ( array $frame, callable | string $function ) : string | Helper method for caching closure function references to help the process of building the stack trace. | |
_definition ( mixed $reference, integer $callLine ) : mixed | Locates original location of closures. |
protected static _closureDef ( array $frame, callable | string $function ) : string | ||
$frame | array | Backtrace information. |
$function | callable | string | The method related to $frame information. |
Результат | string | Returns either the cached or the fetched closure function reference while writing its reference to the cache array `$_closureCache`. |
public static trace ( array $options = [] ) : string | array | null | ||
$options | array | Format for outputting stack trace. Available options are: - `'args'`: A boolean indicating if arguments should be included. - `'depth'`: The maximum depth of the trace. - `'format'`: Either `null`, `'points'` or `'array'`. - `'includeScope'`: A boolean indicating if items within scope should be included. - `'scope'`: Scope for items to include. - `'start'`: The depth to start with. - `'trace'`: A trace to use instead of generating one. |
Результат | string | array | null | Stack trace formatted according to `'format'` option. |
protected static array $_closureCache | ||
Результат | array |