Compare commits

..

4 Commits

Author SHA1 Message Date
cb4b2397ab Extend Stringable 2025-10-25 12:34:48 -04:00
681a15e3d8 Create StringableInterface 2025-10-25 12:33:57 -04:00
49a634d772 composer init 2025-10-25 12:32:49 -04:00
jay
2862a8d4e1 Add composer.lock and /nbproject/ 2025-10-25 12:31:35 -04:00
3 changed files with 35 additions and 7 deletions

8
.gitignore vendored
View File

@@ -1,8 +1,4 @@
# ---> Composer composer.lock
composer.phar composer.phar
/nbproject/
/vendor/ /vendor/
# Commit your application's lock file https://getcomposer.org/doc/01-basic-usage.md#commit-your-composer-lock-file-to-version-control
# You may choose to ignore a library lock file http://getcomposer.org/doc/02-libraries.md#lock-file
# composer.lock

20
composer.json Normal file
View File

@@ -0,0 +1,20 @@
{
"name": "potter/stringable",
"type": "library",
"require": {
"php": "^8.4"
},
"license": "MIT",
"autoload": {
"psr-4": {
"Potter\\Stringable\\": "src/Potter/Stringable/"
}
},
"authors": [
{
"name": "Jay Potter",
"email": "j@ypotter.ca"
}
],
"minimum-stability": "dev"
}

View File

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