CoreFiles by mySites.guru
SilencedErrorContext.php67 lines, 1,453 bytes, from Joomla_5.2.2-Stable-Full_Package.zip
Raw History Compare with 5.2.1
md5
c12e21fdcad70e35e1f6d430d2ef866e
sha1
52e1a049fb8dabfda3a43bf53c79eedb0f6876b1
sha256
f97471374a9464dc7747909018a8295a5691443af7f5e1b1753cb8541962e755
<?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 $count = 1;

    private int $severity;
    private string $file;
    private int $line;
    private array $trace;

    public function __construct(int $severity, string $file, int $line, array $trace = [], int $count = 1)
    {
        $this->severity = $severity;
        $this->file = $file;
        $this->line = $line;
        $this->trace = $trace;
        $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 108 releases, Joomla 5.0.0-alpha1 to 6.0.0-alpha3. See them all, or every version of this file.