feat : Composite file
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
|
||||
namespace App\Interface\Test\Composite;
|
||||
|
||||
interface FileSystemComponentInterface
|
||||
{
|
||||
/**
|
||||
* 获取名字
|
||||
* @return string
|
||||
*/
|
||||
public function getName(): string;
|
||||
|
||||
/**
|
||||
* 获取大小
|
||||
* @return int
|
||||
*/
|
||||
public function getSize(): int;
|
||||
|
||||
/**
|
||||
* 显示
|
||||
* @param string $prefix
|
||||
* @return void
|
||||
*/
|
||||
public function display(string $prefix = ''): void;
|
||||
}
|
||||
Reference in New Issue
Block a user