generated from Potter/Startable
refractor to potter/readable
This commit is contained in:
@@ -1,3 +1,3 @@
|
|||||||
# Startable
|
# Readable
|
||||||
|
|
||||||
Potter Framework Startable Interface
|
Potter Framework Readable Interface
|
||||||
+3
-3
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "potter/startable",
|
"name": "potter/readable",
|
||||||
"description": "Potter Framework Startable Interface",
|
"description": "Potter Framework Readable Interface",
|
||||||
"type": "library",
|
"type": "library",
|
||||||
"require": {
|
"require": {
|
||||||
"php": "^8.5"
|
"php": "^8.5"
|
||||||
@@ -8,7 +8,7 @@
|
|||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"autoload": {
|
"autoload": {
|
||||||
"psr-4": {
|
"psr-4": {
|
||||||
"Potter\\Startable\\": "src/Potter/Startable/"
|
"Potter\\Readable\\": "src/Potter/Readable/"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"authors": [
|
"authors": [
|
||||||
|
|||||||
@@ -0,0 +1,12 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
declare(strict_types=1);
|
||||||
|
|
||||||
|
namespace Potter\Readable;
|
||||||
|
|
||||||
|
interface ReadableInterface
|
||||||
|
{
|
||||||
|
public function getContents(): string;
|
||||||
|
public function isReadable(): bool;
|
||||||
|
public function read(int $length): string;
|
||||||
|
}
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
declare(strict_types=1);
|
|
||||||
|
|
||||||
namespace Potter\Startable;
|
|
||||||
|
|
||||||
interface StartableInterface
|
|
||||||
{
|
|
||||||
public function start(): void;
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user