initialize

This commit is contained in:
2026-03-21 09:31:11 -04:00
parent 3a73f3fead
commit d71453a026
9 changed files with 37 additions and 41 deletions

2
.gitignore vendored
View File

@@ -1,4 +1,4 @@
composer.lock
composer.phar
/nbproject/private/
/nbproject/
/vendor/

View File

@@ -1,3 +1,3 @@
# Potter Framework Component Template
# Potter Framework Throwable Interface
Hello World

View File

@@ -1,9 +1,9 @@
{
"name": "potter/template",
"description": "Potter Framework Component Template",
"name": "potter/throwable",
"description": "Potter Framework Throwable Interface",
"version": "1.0.0",
"type": "library",
"homepage": "https://gitpotter.com/Potter/Template",
"homepage": "https://gitpotter.com/Potter/Throwable",
"license": "MIT",
"authors": [
{
@@ -14,11 +14,13 @@
],
"autoload": {
"psr-4": {
"Potter\\Template\\": "src/Potter/Template/"
"Potter\\Throwable\\": "src/Potter/Throwable/"
}
},
"minimum-stability": "stable",
"require": {
"php": "^8.3"
"php": "^8.3",
"potter/stringable": "^1.0",
"potter/template": "^1.0"
}
}

View File

@@ -1,8 +0,0 @@
<?php
declare(strict_types=1);
namespace Potter\Template;
abstract class AbstractTemplate implements TemplateInterface
{ }

View File

@@ -1,10 +0,0 @@
<?php
declare(strict_types=1);
namespace Potter\Template;
abstract class Template extends AbstractTemplate
{
use TemplateTrait;
}

View File

@@ -1,8 +0,0 @@
<?php
declare(strict_types=1);
namespace Potter\Template;
interface TemplateInterface
{ }

View File

@@ -1,8 +0,0 @@
<?php
declare(strict_types=1);
namespace Potter\Template;
trait TemplateTrait
{ }

View File

@@ -0,0 +1,20 @@
<?php
declare(strict_types=1);
namespace Potter\Throwable;
use \Potter\Stringable\StringableInterface;
use \Potter\Template\TemplateInterface;
use \Throwable as BaseThrowable;
interface ThrowableInterface extends StringableInterface, TemplateInterface
{
public function getMessage(): string;
public function getCode(): int;
public function getFile(): string;
public function getLine(): int;
public function getTrace(): array;
public function getTraceAsString(): string;
public function getPrevious(): ?BaseThrowable;
}

View File

@@ -0,0 +1,8 @@
<?php
declare(strict_types=1);
namespace Potter\Throwable;
trait ThrowableTrait
{ }