-
-
Notifications
You must be signed in to change notification settings - Fork 38
Expand file tree
/
Copy pathFilesystemInterface.php
More file actions
64 lines (53 loc) · 1.36 KB
/
FilesystemInterface.php
File metadata and controls
64 lines (53 loc) · 1.36 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
<?php
namespace React\Filesystem;
use RuntimeException;
use React\EventLoop\LoopInterface;
use React\Filesystem\Node;
interface FilesystemInterface
{
/**
* @param LoopInterface $loop
* @param array $options
* @return FilesystemInterface
* @throws RuntimeException
*/
public static function create(LoopInterface $loop, array $options = []);
/**
* @param AdapterInterface $adapter
* @return static
*/
public static function createFromAdapter(AdapterInterface $adapter);
/**
* @return string[]
*/
public static function getSupportedAdapters();
/**
* @return AdapterInterface
*/
public function getAdapter();
/**
* @param string $filename
* @return Node\FileInterface
*/
public function file($filename);
/**
* @param string $path
* @return Node\DirectoryInterface
*/
public function dir($path);
/**
* @param string $path
* @param Node\NodeInterface $destination
* @return Node\LinkInterface
*/
public function link($path, Node\NodeInterface $destination);
/**
* @param string $filename
* @return \React\Promise\PromiseInterface
*/
public function getContents($filename);
/**
* @param CallInvokerInterface $invoker
*/
public function setInvoker(CallInvokerInterface $invoker);
}