17 lines
450 B
PHP
17 lines
450 B
PHP
<?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);
|
|
}
|