j84reginato/my-eval

View on GitHub
src/Exceptions/MathParserException.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

declare(strict_types=1);

namespace MyEval\Exceptions;

use Exception;

/**
 * Base class for the exceptions thrown by the library.
 */
abstract class MathParserException extends Exception
{
    /**
     * @var string Additional information about the exception.
     */
    protected string $data = '';

    /**
     * Get additional information about the exception.
     *
     * @return string
     */
    public function getData(): string
    {
        return $this->data;
    }
}