Progress made on the compiler, added example library for compiling tests

This commit is contained in:
Netkas 2022-10-18 20:47:03 -04:00
parent 56b2d52459
commit 1e049c5187
19 changed files with 94317 additions and 10 deletions

View file

@ -0,0 +1,26 @@
<?php
/** @noinspection PhpPropertyOnlyWrittenInspection */
namespace ExampleLibrary\Exceptions;
use Exception;
use Throwable;
class InvalidNameException extends Exception
{
private ?Throwable $previous;
/**
* @param string $message
* @param int $code
* @param Throwable|null $previous
*/
public function __construct(string $message = "", int $code = 0, ?Throwable $previous = null)
{
parent::__construct($message, $code, $previous);
$this->message = $message;
$this->code = $code;
$this->previous = $previous;
}
}