haxorqt
Home
Console
Upload
information
Create File
Create Folder
About
:
/
home
/
sc1jaqa5103
/
prod.puv-editions.fr
/
wp-content
/
plugins
/
query-monitor
/
classes
/
Filename :
Wrong.php
back
Copy
<?php declare(strict_types = 1); /** * Class representing something that's kind of wrong. * * @package query-monitor */ /** * @template TArgs of array */ abstract class QM_Wrong implements JsonSerializable { private QM_Backtrace $backtrace; /** * @phpstan-var TArgs $args */ protected array $args; /** * @phpstan-param TArgs $args */ public function __construct( QM_Backtrace $backtrace, array $args = [] ) { $this->backtrace = $backtrace; $this->args = $args; } abstract public function get_message(): string; final public function get_trace(): QM_Backtrace { return $this->backtrace; } /** * @return array{trace: QM_Backtrace, message: string} */ public function jsonSerialize(): array { return [ 'trace' => $this->backtrace, 'message' => $this->get_message(), ]; } }