Version 3.0
New technologies
This commit is contained in:
16
api/common/Concept/File.php
Normal file
16
api/common/Concept/File.php
Normal file
@ -0,0 +1,16 @@
|
||||
<?php
|
||||
namespace Common\Concept;
|
||||
|
||||
interface File
|
||||
{
|
||||
public function setFilename(string $filename): File;
|
||||
public function getFilename(): string;
|
||||
|
||||
public function isDir(): bool;
|
||||
public function isReadable(): bool;
|
||||
public function isWriteable(): bool;
|
||||
|
||||
public function read(?int $length = null): string;
|
||||
public function write(string $data, ?int $length = null);
|
||||
public function append(string $data, ?int $length = null);
|
||||
}
|
Reference in New Issue
Block a user