generated from Potter/Template
initialize
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -1,4 +1,4 @@
|
||||
composer.lock
|
||||
composer.phar
|
||||
/nbproject/private/
|
||||
/nbproject/
|
||||
/vendor/
|
||||
@@ -1,3 +1,3 @@
|
||||
# Potter Framework Component Template
|
||||
# Potter Framework Throwable Interface
|
||||
|
||||
Hello World
|
||||
@@ -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"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,8 +0,0 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Potter\Template;
|
||||
|
||||
abstract class AbstractTemplate implements TemplateInterface
|
||||
{ }
|
||||
@@ -1,10 +0,0 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Potter\Template;
|
||||
|
||||
abstract class Template extends AbstractTemplate
|
||||
{
|
||||
use TemplateTrait;
|
||||
}
|
||||
@@ -1,8 +0,0 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Potter\Template;
|
||||
|
||||
interface TemplateInterface
|
||||
{ }
|
||||
@@ -1,8 +0,0 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Potter\Template;
|
||||
|
||||
trait TemplateTrait
|
||||
{ }
|
||||
20
src/Potter/Throwable/ThrowableInterface.php
Normal file
20
src/Potter/Throwable/ThrowableInterface.php
Normal 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;
|
||||
}
|
||||
8
src/Potter/Throwable/ThrowableTrait.php
Normal file
8
src/Potter/Throwable/ThrowableTrait.php
Normal file
@@ -0,0 +1,8 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Potter\Throwable;
|
||||
|
||||
trait ThrowableTrait
|
||||
{ }
|
||||
Reference in New Issue
Block a user