SourceContextProvider
in package
implements
ContextProviderInterface
FinalYes
Tries to provide context from sources (class name, file, line, code excerpt, ...).
Tags
Table of Contents
Interfaces
- ContextProviderInterface
- Interface to provide contextual data about dump data clones sent to a server.
Properties
- $charset : string|null
- $fileLinkFormatter : mixed
- $limit : int
- $projectDir : string|null
Methods
- __construct() : mixed
- getContext() : array<string|int, mixed>|null
- htmlEncode() : string
Properties
$charset
private
string|null
$charset
$fileLinkFormatter
private
mixed
$fileLinkFormatter
$limit
private
int
$limit
$projectDir
private
string|null
$projectDir
Methods
__construct()
public
__construct([string $charset = null ][, string $projectDir = null ][, FileLinkFormatter $fileLinkFormatter = null ][, int $limit = 9 ]) : mixed
Parameters
- $charset : string = null
- $projectDir : string = null
- $fileLinkFormatter : FileLinkFormatter = null
- $limit : int = 9
getContext()
public
getContext() : array<string|int, mixed>|null
Return values
array<string|int, mixed>|nullhtmlEncode()
private
htmlEncode(string $s) : string
Parameters
- $s : string