generated from Potter/Template
initialize
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -1,4 +1,4 @@
|
|||||||
composer.lock
|
composer.lock
|
||||||
composer.phar
|
composer.phar
|
||||||
/nbproject/private/
|
/nbproject/
|
||||||
/vendor/
|
/vendor/
|
||||||
@@ -1,3 +1,3 @@
|
|||||||
# Potter Framework Component Template
|
# Potter Framework Throwable Interface
|
||||||
|
|
||||||
Hello World
|
Hello World
|
||||||
@@ -1,9 +1,9 @@
|
|||||||
{
|
{
|
||||||
"name": "potter/template",
|
"name": "potter/throwable",
|
||||||
"description": "Potter Framework Component Template",
|
"description": "Potter Framework Throwable Interface",
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"type": "library",
|
"type": "library",
|
||||||
"homepage": "https://gitpotter.com/Potter/Template",
|
"homepage": "https://gitpotter.com/Potter/Throwable",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"authors": [
|
"authors": [
|
||||||
{
|
{
|
||||||
@@ -14,11 +14,13 @@
|
|||||||
],
|
],
|
||||||
"autoload": {
|
"autoload": {
|
||||||
"psr-4": {
|
"psr-4": {
|
||||||
"Potter\\Template\\": "src/Potter/Template/"
|
"Potter\\Throwable\\": "src/Potter/Throwable/"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"minimum-stability": "stable",
|
"minimum-stability": "stable",
|
||||||
"require": {
|
"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