Compare commits

..

5 Commits

Author SHA1 Message Date
5d224bcc02 Extend Stringable 2025-10-25 12:38:01 -04:00
5571f44c96 Create AbstractThrowable 2025-10-25 12:29:50 -04:00
4f87e60b9e Create ThrowableInterface 2025-10-25 12:29:36 -04:00
b56cb27409 composer init 2025-10-25 12:26:10 -04:00
c49b9795cd Add composer.lock and /nbproject/ 2025-10-25 12:25:17 -04:00
4 changed files with 48 additions and 7 deletions

8
.gitignore vendored
View File

@@ -1,8 +1,4 @@
# ---> Composer composer.lock
composer.phar composer.phar
/nbproject/
/vendor/ /vendor/
# Commit your application's lock file https://getcomposer.org/doc/01-basic-usage.md#commit-your-composer-lock-file-to-version-control
# You may choose to ignore a library lock file http://getcomposer.org/doc/02-libraries.md#lock-file
# composer.lock

21
composer.json Normal file
View File

@@ -0,0 +1,21 @@
{
"name": "potter/throwable",
"type": "library",
"require": {
"php": "^8.4",
"potter/stringable": "dev-main"
},
"license": "MIT",
"autoload": {
"psr-4": {
"Potter\\Throwable\\": "src/Potter/Throwable/"
}
},
"authors": [
{
"name": "Jay Potter",
"email": "j@ypotter.ca"
}
],
"minimum-stability": "dev"
}

View File

@@ -0,0 +1,12 @@
<?php
declare(strict_types=1);
namespace Potter\Throwable;
use \Exception;
abstract class AbstractThrowable extends Exception implements ThrowableInterface
{
}

View File

@@ -0,0 +1,12 @@
<?php
declare(strict_types=1);
namespace Potter\Throwable;
use \Potter\Stringable\StringableInterface;
interface ThrowableInterface extends StringableInterface
{
}