mirror of
				https://github.com/filegator/filegator.git
				synced 2025-10-25 02:16:11 +02:00 
			
		
		
		
	
		
			
				
	
	
		
			31 lines
		
	
	
		
			686 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			31 lines
		
	
	
		
			686 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
| <?php
 | |
| 
 | |
| /*
 | |
|  * This file is part of the FileGator package.
 | |
|  *
 | |
|  * (c) Milos Stojanovic <alcalbg@gmail.com>
 | |
|  *
 | |
|  * For the full copyright and license information, please view the LICENSE file
 | |
|  */
 | |
| 
 | |
| namespace Filegator\Services\Tmpfs;
 | |
| 
 | |
| interface TmpfsInterface
 | |
| {
 | |
|     public function exists(string $filename): bool;
 | |
| 
 | |
|     public function findAll($pattern): array;
 | |
| 
 | |
|     public function write(string $filename, $data, $append);
 | |
| 
 | |
|     public function read(string $filename): string;
 | |
| 
 | |
|     public function readStream(string $filename): array;
 | |
| 
 | |
|     public function remove(string $filename);
 | |
| 
 | |
|     public function getFileLocation(string $filename): string;
 | |
| 
 | |
|     public function clean(int $older_than);
 | |
| }
 |