refractor to potter/writeable

This commit is contained in:
2026-06-05 14:25:03 -04:00
parent 0fa913fbf9
commit 12383d84b1
4 changed files with 16 additions and 15 deletions
+2 -2
View File
@@ -1,3 +1,3 @@
# Startable
# Writeable
Potter Framework Startable Interface
Potter Framework Writeable Interface
+3 -3
View File
@@ -1,6 +1,6 @@
{
"name": "potter/startable",
"description": "Potter Framework Startable Interface",
"name": "potter/writeable",
"description": "Potter Framework Writeable Interface",
"type": "library",
"require": {
"php": "^8.5"
@@ -8,7 +8,7 @@
"license": "MIT",
"autoload": {
"psr-4": {
"Potter\\Startable\\": "src/Potter/Startable/"
"Potter\\Writeable\\": "src/Potter/Writeable/"
}
},
"authors": [
@@ -1,10 +0,0 @@
<?php
declare(strict_types=1);
namespace Potter\Startable;
interface StartableInterface
{
public function start(): void;
}
@@ -0,0 +1,11 @@
<?php
declare(strict_types=1);
namespace Potter\Writeable;
interface WriteableInterface
{
public function isReadable(): bool;
public function read(int $length): string;
}