HEX
Server: Apache
System: Linux scp1.abinfocom.com 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
User: confeduphaar (1010)
PHP: 8.1.33
Disabled: exec,passthru,shell_exec,system
Upload Files
File: /home/confeduphaar/backip-old-files/libraries/astroid/framework/library/astroid/Reporter.php
<?php

/**
 * @package   Astroid Framework
 * @author    JoomDev https://www.joomdev.com
 * @copyright Copyright (C) 2009 - 2020 JoomDev.
 * @license https://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 or Later
 */

namespace Astroid;

defined('_JEXEC') or die;

class Reporter
{
    public $title, $id, $reports = [];

    public function __construct($title)
    {
        $this->title = $title;
        $this->id = Helper::slugify($title) . '-reporter';
        Framework::addReporter($this);
    }

    public function add($report)
    {
        $this->reports[] = $report;
    }

    public function backtrace($array)
    {
        $info = $array[0];
        $this->add("<code>{$info['class']}</code> is deprecated and no longer suppoerted. use <code>Astroid\framework::getTemplate()</code> in <code>{$info['file']}</code> at line <code>{$info['line']}</code>.");
    }
}