class SilencedErrorContext
Data Object that represents a Silenced Error.
@author Grégoire Pineau <lyrixx@lyrixx.info>
Hierarchy
- class \Symfony\Component\ErrorHandler\Exception\SilencedErrorContext implements \Symfony\Component\ErrorHandler\Exception\JsonSerializable
Expanded class hierarchy of SilencedErrorContext
4 files declare their use of SilencedErrorContext
- ErrorHandler.php in vendor/
symfony/ error-handler/ ErrorHandler.php - ExceptionCaster.php in vendor/
symfony/ var-dumper/ Caster/ ExceptionCaster.php - LoggerDataCollector.php in vendor/
symfony/ http-kernel/ DataCollector/ LoggerDataCollector.php - ThrowableUtils.php in vendor/
symfony/ error-handler/ ThrowableUtils.php
File
-
vendor/
symfony/ error-handler/ Exception/ SilencedErrorContext.php, line 19
Namespace
Symfony\Component\ErrorHandler\ExceptionView source
class SilencedErrorContext implements \JsonSerializable {
public int $count = 1;
public function __construct(int $severity, string $file, int $line, array $trace = [], int $count = 1) {
$this->count = $count;
}
public function getSeverity() : int {
return $this->severity;
}
public function getFile() : string {
return $this->file;
}
public function getLine() : int {
return $this->line;
}
public function getTrace() : array {
return $this->trace;
}
public function jsonSerialize() : array {
return [
'severity' => $this->severity,
'file' => $this->file,
'line' => $this->line,
'trace' => $this->trace,
'count' => $this->count,
];
}
}
Members
Title Sort descending | Modifiers | Object type | Summary |
---|---|---|---|
SilencedErrorContext::$count | public | property | |
SilencedErrorContext::getFile | public | function | |
SilencedErrorContext::getLine | public | function | |
SilencedErrorContext::getSeverity | public | function | |
SilencedErrorContext::getTrace | public | function | |
SilencedErrorContext::jsonSerialize | public | function | |
SilencedErrorContext::__construct | public | function |