extend \Stringable

This commit is contained in:
2026-03-20 19:02:19 -04:00
parent b4e7bee066
commit cce61914e3
8 changed files with 32 additions and 38 deletions

View File

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

View File

@@ -0,0 +1,7 @@
include.path=${php.global.include.path}
php.version=PHP_84
source.encoding=UTF-8
src.dir=src
tags.asp=false
tags.short=false
web.root=.

9
nbproject/project.xml Normal file
View File

@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://www.netbeans.org/ns/project/1">
<type>org.netbeans.modules.php.project</type>
<configuration>
<data xmlns="http://www.netbeans.org/ns/php-project/1">
<name>Stringable</name>
</data>
</configuration>
</project>

View File

@@ -0,0 +1,12 @@
<?php
declare(strict_types=1);
namespace Potter\Stringable;
use \Stringable as BaseStringable;
interface StringableInterface extends BaseStringable
{
public function __toString(): string;
}

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
{ }