class SourceContextProvider implements ContextProviderInterface

Tries to provide context from sources (class name, file, line, code excerpt, .

..).

Methods

__construct(string $charset = null, string $projectDir = null, FileLinkFormatter $fileLinkFormatter = null, int $limit = 9)

No description

array|null
getContext()

No description

Details

__construct(string $charset = null, string $projectDir = null, FileLinkFormatter $fileLinkFormatter = null, int $limit = 9)

Parameters

string $charset
string $projectDir
FileLinkFormatter $fileLinkFormatter
int $limit

array|null getContext()

Return Value

array|null Context data or null if unable to provide any context