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

Breadcrumb

  1. Drupal Core 11.1.x

SilencedErrorContext.php

Namespace

Symfony\Component\ErrorHandler\Exception

File

vendor/symfony/error-handler/Exception/SilencedErrorContext.php

View source
<?php


/*
 * This file is part of the Symfony package.
 *
 * (c) Fabien Potencier <fabien@symfony.com>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */
namespace Symfony\Component\ErrorHandler\Exception;


/**
 * Data Object that represents a Silenced Error.
 *
 * @author Grégoire Pineau <lyrixx@lyrixx.info>
 */
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,
        ];
    }

}

Classes

Title Deprecated Summary
SilencedErrorContext Data Object that represents a Silenced Error.

API Navigation

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