. */ declare(strict_types=1); namespace App\Entity\LogSystem; use App\Exceptions\LogEntryObsoleteException; use Doctrine\ORM\Mapping as ORM; /** * @ORM\Entity() */ class ExceptionLogEntry extends AbstractLogEntry { protected string $typeString = 'exception'; public function __construct() { parent::__construct(); throw new LogEntryObsoleteException(); } /** * The class name of the exception that caused this log entry. */ public function getExceptionClass(): string { return $this->extra['t'] ?? 'Unknown Class'; } /** * Returns the file where the exception happened. */ public function getFile(): string { return $this->extra['f'] ?? 'Unknown file'; } /** * Returns the line where the exception happened. */ public function getLine(): int { return $this->extra['l'] ?? -1; } /** * Return the message of the exception. */ public function getMessage(): string { return $this->extra['m'] ?? 'Unknown message'; } }