generated from Potter/Template
extend \Stringable
This commit is contained in:
@@ -1,9 +1,9 @@
|
|||||||
{
|
{
|
||||||
"name": "potter/template",
|
"name": "potter/stringable",
|
||||||
"description": "Potter Framework Component Template",
|
"description": "Potter Framework Stringable Interface",
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"type": "library",
|
"type": "library",
|
||||||
"homepage": "https://gitpotter.com/Potter/Template",
|
"homepage": "https://gitpotter.com/Potter/Stringable",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"authors": [
|
"authors": [
|
||||||
{
|
{
|
||||||
@@ -14,7 +14,7 @@
|
|||||||
],
|
],
|
||||||
"autoload": {
|
"autoload": {
|
||||||
"psr-4": {
|
"psr-4": {
|
||||||
"Potter\\Template\\": "src/Potter/Template/"
|
"Potter\\Stringable\\": "src/Potter/Stringable/"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"minimum-stability": "stable",
|
"minimum-stability": "stable",
|
||||||
|
|||||||
7
nbproject/project.properties
Normal file
7
nbproject/project.properties
Normal 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
9
nbproject/project.xml
Normal 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>
|
||||||
12
src/Potter/Stringable/StringableInterface.php
Normal file
12
src/Potter/Stringable/StringableInterface.php
Normal 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;
|
||||||
|
}
|
||||||
@@ -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
|
|
||||||
{ }
|
|
||||||
Reference in New Issue
Block a user