프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$_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 |