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