CoreFiles by mySites.guru
SilencedErrorContext.php63 lines, 1,303 bytes, from Joomla_6.1.0-alpha1-Alpha-Full_Package.zip
Raw History Compare with 6.0.0-alpha3
md5
a1304544815e0e672ea22a2b1bee3c72
sha1
ec51d9278f6f5a5adf0ca6f2e4b2af286e0e0962
sha256
19b3dab2f8e87ee22bb70b262d9416eecf40db081f67f6fe5092e4b03f6fbfde
<?php

/*
 * This file is part of the Symfony package.
 *
 * (c) Fabien Potencier <[email protected]>
 *
 * 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 <[email protected]>
 */
class SilencedErrorContext implements \JsonSerializable
{
    public int $count = 1;

    public function __construct(
        private int $severity,
        private string $file,
        private int $line,
        private 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,
        ];
    }
}

The same content is in 47 releases, Joomla 6.0.0-beta1 to 6.2.1-rc1. See them all, or every version of this file.