Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. SilencedErrorContext.php

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\Exception
View 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

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal